| 1 | package PPI::Token::Regexp::Match; | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | PPI::Token::Regexp::Match - A standard pattern match regex | ||
| 8 | |||
| 9 | =head1 INHERITANCE | ||
| 10 | |||
| 11 | PPI::Token::Regexp::Match | ||
| 12 | isa PPI::Token::Regexp | ||
| 13 | isa PPI::Token | ||
| 14 | isa PPI::Element | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | $text =~ m/match regexp/; | ||
| 19 | $text =~ /match regexp/; | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 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. | ||
| 26 | |||
| 27 | # Is a match regexp | ||
| 28 | /This is a match regexp/; | ||
| 29 | m/Old McDonald had a farm/eieio; | ||
| 30 | |||
| 31 | # These are NOT match regexp | ||
| 32 | qr/This is a regexp quote-like operator/; | ||
| 33 | s/This is a/replace regexp/; | ||
| 34 | |||
| 35 | =head1 METHODS | ||
| 36 | |||
| 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. | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 62 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 44 | 62 | ▶ | use PPI::Token::Regexp (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 45 | 62 | ▶ | use PPI::Token::_QuoteEngine::Full (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 46 | |||
| 47 | 62 | ▶ | use vars qw{$VERSION @ISA}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 48 | BEGIN { | ||
| 49 | 62 | ▶ | $VERSION = '1.236'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 50 | 62 | @ISA = qw{ | |
| 51 | PPI::Token::_QuoteEngine::Full | ||
| 52 | PPI::Token::Regexp | ||
| 53 | }; | ||
| 54 | } | ||
| 55 | |||
| 56 | 62 | 1; | |
| 57 | |||
| 58 | =pod | ||
| 59 | |||
| 60 | =head1 SUPPORT | ||
| 61 | |||
| 62 | See the L<support section|PPI/SUPPORT> in the main module. | ||
| 63 | |||
| 64 | =head1 AUTHOR | ||
| 65 | |||
| 66 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||
| 67 | |||
| 68 | =head1 COPYRIGHT | ||
| 69 | |||
| 70 | Copyright 2001 - 2011 Adam Kennedy. | ||
| 71 | |||
| 72 | This program is free software; you can redistribute | ||
| 73 | it and/or modify it under the same terms as Perl itself. | ||
| 74 | |||
| 75 | The full text of the license can be found in the | ||
| 76 | LICENSE file included with this module. | ||
| 77 | |||
| 78 | =cut | ||