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