1 package PPI::Token::Regexp::Match;
7 PPI::Token::Regexp::Match - A standard pattern match regex
11 PPI::Token::Regexp::Match
12 isa PPI::Token::Regexp
18 $text =~ m/match regexp/;
19 $text =~ /match regexp/;
23 A C<PPI::Token::Regexp::Match> object represents a single match regular
24 expression. Just to be doubly clear, here are things that are and
25 B<aren't> considered a match regexp.
28 /This is a match regexp/;
29 m/Old McDonald had a farm/eieio;
31 # These are NOT match regexp
32 qr/This is a regexp quote-like operator/;
33 s/This is a/replace regexp/;
37 There are no methods available for C<PPI::Token::Regexp::Match> beyond
38 those provided by the parent L<PPI::Token::Regexp>, L<PPI::Token> and
39 L<PPI::Element> classes.
41 Got any ideas for methods? Submit a report to rt.cpan.org!
46 use PPI::Token::Regexp ();
47 use PPI::Token::_QuoteEngine::Full ();
49 use vars qw{$VERSION @ISA};
53 PPI::Token::_QuoteEngine::Full
64 See the L<support section|PPI/SUPPORT> in the main module.
68 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
72 Copyright 2001 - 2009 Adam Kennedy.
74 This program is free software; you can redistribute
75 it and/or modify it under the same terms as Perl itself.
77 The full text of the license can be found in the
78 LICENSE file included with this module.