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