PPI::To...p::Match(3)

πŸ’– PPI::Token::Regexp::Match πŸ’–

okay bestie, welcome to the manual page for PPI::Token::Regexp::Match (that's the PPI::To...p::Match(3) one, you found it, slay) ✨


🌸 NAME 🌸

PPI::Token::Regexp::Match β€” a standard pattern match regex, no cap πŸŽ€


πŸ¦‹ INHERITANCE πŸ¦‹

the family tree, and yes she comes from a long line of icons:

PPI::Token::Regexp::Match
isa PPI::Token::Regexp
    isa PPI::Token
        isa PPI::Element

four generations of absolute royalty, we love a lineage πŸ’œ


✨ SYNOPSIS ✨

the whole vibe in two lines:

$text =~ m/match regexp/;
$text =~ /match regexp/;

🌈 DESCRIPTION 🌈

so a PPI::Token::Regexp::Match object represents one single match regular expression. and like, just to be doubly clear (because this trips people up fr fr), here's what counts as a match regexp and what absolutely does not:

# Is a match regexp
/This is a match regexp/;
m/Old McDonald had a farm/eieio;

# These are NOT match regexp
qr/This is a regexp quote-like operator/;
s/This is a/replace regexp/;

see the difference? qr// is a quote-like operator and s/// is a replace regexp β€” they are not match regexps, they're their own whole thing, and this class is not claiming them πŸ’…


🧚 METHODS 🧚

there are no methods available for PPI::Token::Regexp::Match beyond the ones you already get from your parents β€” PPI::Token::Regexp, PPI::Token and PPI::Element. so like, everything is inherited, she adds nothing new, and honestly? iconic behaviour, no notes πŸ‘‘


🫢 SUPPORT 🫢

see the support section in the main module, bestie β€” that's where the help lives 🌸


πŸ‘‘ AUTHOR πŸ‘‘

Adam Kennedy <adamk@cpan.org>


Copyright 2001 - 2011 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


and that's the whole page!! mwah πŸ’–

this cutie was brought to you by perl v5.42.0, dated 2026-01-17, under User Contributed Perl Documentation β€” thanks for reading, ily, go match some regexps responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from