Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPIx/Regexp/Structure/Replacement.pm |
Statements | Executed 8 statements in 77µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 12µs | 23µs | BEGIN@36 | PPIx::Regexp::Structure::Replacement::
1 | 1 | 1 | 7µs | 11µs | BEGIN@37 | PPIx::Regexp::Structure::Replacement::
1 | 1 | 1 | 7µs | 63µs | BEGIN@39 | PPIx::Regexp::Structure::Replacement::
0 | 0 | 0 | 0s | 0s | can_be_quantified | PPIx::Regexp::Structure::Replacement::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | =head1 NAME | ||||
2 | |||||
3 | PPIx::Regexp::Structure::Replacement - Represent the replacement in s/// | ||||
4 | |||||
5 | =head1 SYNOPSIS | ||||
6 | |||||
7 | use PPIx::Regexp::Dumper; | ||||
8 | PPIx::Regexp::Dumper->new( 's{foo}{bar}smxg' ) | ||||
9 | ->print(); | ||||
10 | |||||
11 | =head1 INHERITANCE | ||||
12 | |||||
13 | C<PPIx::Regexp::Structure::Replacement> is a | ||||
14 | L<PPIx::Regexp::Structure::Main|PPIx::Regexp::Structure::Main>. | ||||
15 | |||||
16 | C<PPIx::Regexp::Structure::Replacement> has no descendants. | ||||
17 | |||||
18 | =head1 DESCRIPTION | ||||
19 | |||||
20 | This class represents the replacement in a substitution operation. In | ||||
21 | the example given in the L</SYNOPSIS>, the C<{bar}> will be represented | ||||
22 | by this class. | ||||
23 | |||||
24 | Note that if the substitution is not bracketed (e.g. C<s/foo/bar/g>), | ||||
25 | this structure will contain no starting delimiter. | ||||
26 | |||||
27 | =head1 METHODS | ||||
28 | |||||
29 | This class provides no public methods beyond those provided by its | ||||
30 | superclass. | ||||
31 | |||||
32 | =cut | ||||
33 | |||||
34 | package PPIx::Regexp::Structure::Replacement; | ||||
35 | |||||
36 | 2 | 19µs | 2 | 34µs | # spent 23µs (12+11) within PPIx::Regexp::Structure::Replacement::BEGIN@36 which was called:
# once (12µs+11µs) by PPIx::Regexp::Lexer::BEGIN@57 at line 36 # spent 23µs making 1 call to PPIx::Regexp::Structure::Replacement::BEGIN@36
# spent 11µs making 1 call to strict::import |
37 | 2 | 19µs | 2 | 16µs | # spent 11µs (7+4) within PPIx::Regexp::Structure::Replacement::BEGIN@37 which was called:
# once (7µs+4µs) by PPIx::Regexp::Lexer::BEGIN@57 at line 37 # spent 11µs making 1 call to PPIx::Regexp::Structure::Replacement::BEGIN@37
# spent 4µs making 1 call to warnings::import |
38 | |||||
39 | 2 | 37µs | 2 | 119µs | # spent 63µs (7+56) within PPIx::Regexp::Structure::Replacement::BEGIN@39 which was called:
# once (7µs+56µs) by PPIx::Regexp::Lexer::BEGIN@57 at line 39 # spent 63µs making 1 call to PPIx::Regexp::Structure::Replacement::BEGIN@39
# spent 56µs making 1 call to base::import |
40 | |||||
41 | 1 | 500ns | our $VERSION = '0.036'; | ||
42 | |||||
43 | sub can_be_quantified { return; } | ||||
44 | |||||
45 | 1 | 2µs | 1; | ||
46 | |||||
47 | __END__ |