Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Token/Separator.pm |
Statements | Executed 9 statements in 168µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 19µs | 40µs | BEGIN@35 | PPI::Token::Separator::
1 | 1 | 1 | 15µs | 15µs | BEGIN@39 | PPI::Token::Separator::
1 | 1 | 1 | 11µs | 58µs | BEGIN@38 | PPI::Token::Separator::
1 | 1 | 1 | 5µs | 5µs | BEGIN@36 | PPI::Token::Separator::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package PPI::Token::Separator; | ||||
2 | |||||
3 | =pod | ||||
4 | |||||
5 | =head1 NAME | ||||
6 | |||||
7 | PPI::Token::Separator - The __DATA__ and __END__ tags | ||||
8 | |||||
9 | =head1 INHERITANCE | ||||
10 | |||||
11 | PPI::Token::Separator | ||||
12 | isa PPI::Token::Word | ||||
13 | isa PPI::Token | ||||
14 | isa PPI::Element | ||||
15 | |||||
16 | =head1 DESCRIPTION | ||||
17 | |||||
18 | Although superficially looking like a normal L<PPI::Token::Word> object, | ||||
19 | when the C<__DATA__> and C<__END__> compiler tags appear at the beginning of | ||||
20 | a line (on supposedly) their own line, these tags become file section | ||||
21 | separators. | ||||
22 | |||||
23 | The indicate that the time for Perl code is over, and the rest of the | ||||
24 | file is dedicated to something else (data in the case of C<__DATA__>) or | ||||
25 | to nothing at all (in the case of C<__END__>). | ||||
26 | |||||
27 | =head1 METHODS | ||||
28 | |||||
29 | This class has no methods beyond what is provided by its | ||||
30 | L<PPI::Token::Word>, L<PPI::Token> and L<PPI::Element> | ||||
31 | parent classes. | ||||
32 | |||||
33 | =cut | ||||
34 | |||||
35 | 2 | 33µs | 2 | 60µs | # spent 40µs (19+21) within PPI::Token::Separator::BEGIN@35 which was called:
# once (19µs+21µs) by PPI::Token::BEGIN@71 at line 35 # spent 40µs making 1 call to PPI::Token::Separator::BEGIN@35
# spent 21µs making 1 call to strict::import |
36 | 2 | 37µs | 1 | 5µs | # spent 5µs within PPI::Token::Separator::BEGIN@36 which was called:
# once (5µs+0s) by PPI::Token::BEGIN@71 at line 36 # spent 5µs making 1 call to PPI::Token::Separator::BEGIN@36 |
37 | |||||
38 | 2 | 48µs | 2 | 106µs | # spent 58µs (11+48) within PPI::Token::Separator::BEGIN@38 which was called:
# once (11µs+48µs) by PPI::Token::BEGIN@71 at line 38 # spent 58µs making 1 call to PPI::Token::Separator::BEGIN@38
# spent 48µs making 1 call to vars::import |
39 | # spent 15µs within PPI::Token::Separator::BEGIN@39 which was called:
# once (15µs+0s) by PPI::Token::BEGIN@71 at line 42 | ||||
40 | 1 | 600ns | $VERSION = '1.215'; | ||
41 | 1 | 15µs | @ISA = 'PPI::Token::Word'; | ||
42 | 1 | 32µs | 1 | 15µs | } # spent 15µs making 1 call to PPI::Token::Separator::BEGIN@39 |
43 | |||||
44 | 1 | 3µs | 1; | ||
45 | |||||
46 | =pod | ||||
47 | |||||
48 | =head1 SUPPORT | ||||
49 | |||||
50 | See the L<support section|PPI/SUPPORT> in the main module. | ||||
51 | |||||
52 | =head1 AUTHOR | ||||
53 | |||||
54 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
55 | |||||
56 | =head1 COPYRIGHT | ||||
57 | |||||
58 | Copyright 2001 - 2011 Adam Kennedy. | ||||
59 | |||||
60 | This program is free software; you can redistribute | ||||
61 | it and/or modify it under the same terms as Perl itself. | ||||
62 | |||||
63 | The full text of the license can be found in the | ||||
64 | LICENSE file included with this module. | ||||
65 | |||||
66 | =cut |