Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Token/Regexp/Match.pm |
Statements | Executed 11 statements in 180µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 213µs | 279µs | BEGIN@46 | PPI::Token::Regexp::Match::
1 | 1 | 1 | 13µs | 25µs | BEGIN@45 | PPI::Token::Regexp::Match::
1 | 1 | 1 | 9µs | 9µs | BEGIN@50 | PPI::Token::Regexp::Match::
1 | 1 | 1 | 6µs | 32µs | BEGIN@49 | PPI::Token::Regexp::Match::
1 | 1 | 1 | 3µs | 3µs | BEGIN@47 | PPI::Token::Regexp::Match::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
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 | Got any ideas for methods? Submit a report to rt.cpan.org! | ||||
42 | |||||
43 | =cut | ||||
44 | |||||
45 | 2 | 18µs | 2 | 36µs | # spent 25µs (13+11) within PPI::Token::Regexp::Match::BEGIN@45 which was called:
# once (13µs+11µs) by PPI::Token::BEGIN@63 at line 45 # spent 25µs making 1 call to PPI::Token::Regexp::Match::BEGIN@45
# spent 11µs making 1 call to strict::import |
46 | 2 | 84µs | 1 | 279µs | # spent 279µs (213+65) within PPI::Token::Regexp::Match::BEGIN@46 which was called:
# once (213µs+65µs) by PPI::Token::BEGIN@63 at line 46 # spent 279µs making 1 call to PPI::Token::Regexp::Match::BEGIN@46 |
47 | 2 | 18µs | 1 | 3µs | # spent 3µs within PPI::Token::Regexp::Match::BEGIN@47 which was called:
# once (3µs+0s) by PPI::Token::BEGIN@63 at line 47 # spent 3µs making 1 call to PPI::Token::Regexp::Match::BEGIN@47 |
48 | |||||
49 | 2 | 28µs | 2 | 59µs | # spent 32µs (6+27) within PPI::Token::Regexp::Match::BEGIN@49 which was called:
# once (6µs+27µs) by PPI::Token::BEGIN@63 at line 49 # spent 32µs making 1 call to PPI::Token::Regexp::Match::BEGIN@49
# spent 27µs making 1 call to vars::import |
50 | # spent 9µs within PPI::Token::Regexp::Match::BEGIN@50 which was called:
# once (9µs+0s) by PPI::Token::BEGIN@63 at line 56 | ||||
51 | 1 | 300ns | $VERSION = '1.215'; | ||
52 | 1 | 10µs | @ISA = qw{ | ||
53 | PPI::Token::_QuoteEngine::Full | ||||
54 | PPI::Token::Regexp | ||||
55 | }; | ||||
56 | 1 | 20µs | 1 | 9µs | } # spent 9µs making 1 call to PPI::Token::Regexp::Match::BEGIN@50 |
57 | |||||
58 | 1 | 2µs | 1; | ||
59 | |||||
60 | =pod | ||||
61 | |||||
62 | =head1 SUPPORT | ||||
63 | |||||
64 | See the L<support section|PPI/SUPPORT> in the main module. | ||||
65 | |||||
66 | =head1 AUTHOR | ||||
67 | |||||
68 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
69 | |||||
70 | =head1 COPYRIGHT | ||||
71 | |||||
72 | Copyright 2001 - 2011 Adam Kennedy. | ||||
73 | |||||
74 | This program is free software; you can redistribute | ||||
75 | it and/or modify it under the same terms as Perl itself. | ||||
76 | |||||
77 | The full text of the license can be found in the | ||||
78 | LICENSE file included with this module. | ||||
79 | |||||
80 | =cut |