Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Token/QuoteLike.pm |
Statements | Executed 9 statements in 95µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 11µs | 22µs | BEGIN@48 | PPI::Token::QuoteLike::
1 | 1 | 1 | 8µs | 8µs | BEGIN@52 | PPI::Token::QuoteLike::
1 | 1 | 1 | 6µs | 34µs | BEGIN@51 | PPI::Token::QuoteLike::
1 | 1 | 1 | 3µs | 3µs | BEGIN@49 | PPI::Token::QuoteLike::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package PPI::Token::QuoteLike; | ||||
2 | |||||
3 | =pod | ||||
4 | |||||
5 | =head1 NAME | ||||
6 | |||||
7 | PPI::Token::QuoteLike - Quote-like operator abstract base class | ||||
8 | |||||
9 | =head1 INHERITANCE | ||||
10 | |||||
11 | PPI::Token::QuoteLike | ||||
12 | isa PPI::Token | ||||
13 | isa PPI::Element | ||||
14 | |||||
15 | =head1 DESCRIPTION | ||||
16 | |||||
17 | The C<PPI::Token::QuoteLike> class is never instantiated, and simply | ||||
18 | provides a common abstract base class for the five quote-like operator | ||||
19 | classes. In PPI, a "quote-like" is the set of quote-like things that | ||||
20 | exclude the string quotes and regular expressions. | ||||
21 | |||||
22 | The subclasses of C<PPI::Token::QuoteLike> are: | ||||
23 | |||||
24 | =over 2 | ||||
25 | |||||
26 | =item qw{} - L<PPI::Token::QuoteLike::Words> | ||||
27 | |||||
28 | =item `` - L<PPI::Token::QuoteLike::Backtick> | ||||
29 | |||||
30 | =item qx{} - L<PPI::Token::QuoteLike::Command> | ||||
31 | |||||
32 | =item qr// - L<PPI::Token::QuoteLike::Regexp> | ||||
33 | |||||
34 | =item <FOO> - L<PPI::Token::QuoteLike::Readline> | ||||
35 | |||||
36 | =back | ||||
37 | |||||
38 | The names are hopefully obvious enough not to have to explain what | ||||
39 | each class is. See their pages for more details. | ||||
40 | |||||
41 | You may note that the backtick and command quote-like are treated | ||||
42 | separately, even though they do the same thing. This is intentional, | ||||
43 | as the inherit from and are processed by two different parts of the | ||||
44 | PPI's quote engine. | ||||
45 | |||||
46 | =cut | ||||
47 | |||||
48 | 2 | 18µs | 2 | 33µs | # spent 22µs (11+11) within PPI::Token::QuoteLike::BEGIN@48 which was called:
# once (11µs+11µs) by PPI::Token::QuoteLike::Backtick::BEGIN@32 at line 48 # spent 22µs making 1 call to PPI::Token::QuoteLike::BEGIN@48
# spent 11µs making 1 call to strict::import |
49 | 2 | 18µs | 1 | 3µs | # spent 3µs within PPI::Token::QuoteLike::BEGIN@49 which was called:
# once (3µs+0s) by PPI::Token::QuoteLike::Backtick::BEGIN@32 at line 49 # spent 3µs making 1 call to PPI::Token::QuoteLike::BEGIN@49 |
50 | |||||
51 | 2 | 28µs | 2 | 62µs | # spent 34µs (6+28) within PPI::Token::QuoteLike::BEGIN@51 which was called:
# once (6µs+28µs) by PPI::Token::QuoteLike::Backtick::BEGIN@32 at line 51 # spent 34µs making 1 call to PPI::Token::QuoteLike::BEGIN@51
# spent 28µs making 1 call to vars::import |
52 | # spent 8µs within PPI::Token::QuoteLike::BEGIN@52 which was called:
# once (8µs+0s) by PPI::Token::QuoteLike::Backtick::BEGIN@32 at line 55 | ||||
53 | 1 | 300ns | $VERSION = '1.215'; | ||
54 | 1 | 8µs | @ISA = 'PPI::Token'; | ||
55 | 1 | 21µs | 1 | 8µs | } # spent 8µs making 1 call to PPI::Token::QuoteLike::BEGIN@52 |
56 | |||||
57 | 1 | 2µs | 1; | ||
58 | |||||
59 | =pod | ||||
60 | |||||
61 | =head1 SUPPORT | ||||
62 | |||||
63 | See the L<support section|PPI/SUPPORT> in the main module. | ||||
64 | |||||
65 | =head1 AUTHOR | ||||
66 | |||||
67 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
68 | |||||
69 | =head1 COPYRIGHT | ||||
70 | |||||
71 | Copyright 2001 - 2011 Adam Kennedy. | ||||
72 | |||||
73 | This program is free software; you can redistribute | ||||
74 | it and/or modify it under the same terms as Perl itself. | ||||
75 | |||||
76 | The full text of the license can be found in the | ||||
77 | LICENSE file included with this module. | ||||
78 | |||||
79 | =cut |