| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Token/Regexp/Substitute.pm |
| Statements | Executed 11 statements in 132µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 12µs | 12µs | PPI::Token::Regexp::Substitute::BEGIN@36 |
| 1 | 1 | 1 | 11µs | 22µs | PPI::Token::Regexp::Substitute::BEGIN@35 |
| 1 | 1 | 1 | 10µs | 10µs | PPI::Token::Regexp::Substitute::BEGIN@40 |
| 1 | 1 | 1 | 6µs | 34µs | PPI::Token::Regexp::Substitute::BEGIN@39 |
| 1 | 1 | 1 | 3µs | 3µs | PPI::Token::Regexp::Substitute::BEGIN@37 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package PPI::Token::Regexp::Substitute; | ||||
| 2 | |||||
| 3 | =pod | ||||
| 4 | |||||
| 5 | =head1 NAME | ||||
| 6 | |||||
| 7 | PPI::Token::Regexp::Substitute - A match and replace regular expression token | ||||
| 8 | |||||
| 9 | =head1 INHERITANCE | ||||
| 10 | |||||
| 11 | PPI::Token::Regexp::Substitute | ||||
| 12 | isa PPI::Token::Regexp | ||||
| 13 | isa PPI::Token | ||||
| 14 | isa PPI::Element | ||||
| 15 | |||||
| 16 | =head1 SYNOPSIS | ||||
| 17 | |||||
| 18 | $text =~ s/find/$replace/; | ||||
| 19 | |||||
| 20 | =head1 DESCRIPTION | ||||
| 21 | |||||
| 22 | A C<PPI::Token::Regexp::Substitute> object represents a single substitution | ||||
| 23 | regular expression. | ||||
| 24 | |||||
| 25 | =head1 METHODS | ||||
| 26 | |||||
| 27 | There are no methods available for C<PPI::Token::Regexp::Substitute> | ||||
| 28 | beyond those provided by the parent L<PPI::Token::Regexp>, L<PPI::Token> | ||||
| 29 | and L<PPI::Element> classes. | ||||
| 30 | |||||
| 31 | Got any ideas for methods? Submit a report to rt.cpan.org! | ||||
| 32 | |||||
| 33 | =cut | ||||
| 34 | |||||
| 35 | 2 | 30µs | 2 | 34µs | # spent 22µs (11+12) within PPI::Token::Regexp::Substitute::BEGIN@35 which was called:
# once (11µs+12µs) by PPI::Token::BEGIN@64 at line 35 # spent 22µs making 1 call to PPI::Token::Regexp::Substitute::BEGIN@35
# spent 12µs making 1 call to strict::import |
| 36 | 2 | 16µs | 1 | 12µs | # spent 12µs within PPI::Token::Regexp::Substitute::BEGIN@36 which was called:
# once (12µs+0s) by PPI::Token::BEGIN@64 at line 36 # spent 12µs making 1 call to PPI::Token::Regexp::Substitute::BEGIN@36 |
| 37 | 2 | 18µs | 1 | 3µs | # spent 3µs within PPI::Token::Regexp::Substitute::BEGIN@37 which was called:
# once (3µs+0s) by PPI::Token::BEGIN@64 at line 37 # spent 3µs making 1 call to PPI::Token::Regexp::Substitute::BEGIN@37 |
| 38 | |||||
| 39 | 2 | 38µs | 2 | 62µs | # spent 34µs (6+28) within PPI::Token::Regexp::Substitute::BEGIN@39 which was called:
# once (6µs+28µs) by PPI::Token::BEGIN@64 at line 39 # spent 34µs making 1 call to PPI::Token::Regexp::Substitute::BEGIN@39
# spent 28µs making 1 call to vars::import |
| 40 | # spent 10µs within PPI::Token::Regexp::Substitute::BEGIN@40 which was called:
# once (10µs+0s) by PPI::Token::BEGIN@64 at line 46 | ||||
| 41 | 1 | 400ns | $VERSION = '1.215'; | ||
| 42 | 1 | 11µs | @ISA = qw{ | ||
| 43 | PPI::Token::_QuoteEngine::Full | ||||
| 44 | PPI::Token::Regexp | ||||
| 45 | }; | ||||
| 46 | 1 | 18µs | 1 | 10µs | } # spent 10µs making 1 call to PPI::Token::Regexp::Substitute::BEGIN@40 |
| 47 | |||||
| 48 | 1 | 2µs | 1; | ||
| 49 | |||||
| 50 | =pod | ||||
| 51 | |||||
| 52 | =head1 SUPPORT | ||||
| 53 | |||||
| 54 | See the L<support section|PPI/SUPPORT> in the main module. | ||||
| 55 | |||||
| 56 | =head1 AUTHOR | ||||
| 57 | |||||
| 58 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
| 59 | |||||
| 60 | =head1 COPYRIGHT | ||||
| 61 | |||||
| 62 | Copyright 2001 - 2011 Adam Kennedy. | ||||
| 63 | |||||
| 64 | This program is free software; you can redistribute | ||||
| 65 | it and/or modify it under the same terms as Perl itself. | ||||
| 66 | |||||
| 67 | The full text of the license can be found in the | ||||
| 68 | LICENSE file included with this module. | ||||
| 69 | |||||
| 70 | =cut |