Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Structure/Constructor.pm |
Statements | Executed 9 statements in 96µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 11µs | 24µs | BEGIN@35 | PPI::Structure::Constructor::
1 | 1 | 1 | 8µs | 8µs | BEGIN@39 | PPI::Structure::Constructor::
1 | 1 | 1 | 6µs | 34µs | BEGIN@38 | PPI::Structure::Constructor::
1 | 1 | 1 | 3µs | 3µs | BEGIN@36 | PPI::Structure::Constructor::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package PPI::Structure::Constructor; | ||||
2 | |||||
3 | =pod | ||||
4 | |||||
5 | =head1 NAME | ||||
6 | |||||
7 | PPI::Structure::Constructor - Anonymous hash or array constructor | ||||
8 | |||||
9 | =head1 SYNOPSIS | ||||
10 | |||||
11 | my $array = [ 'foo', 'bar' ]; | ||||
12 | my $hash = { foo => 'bar' }; | ||||
13 | |||||
14 | =head1 INHERITANCE | ||||
15 | |||||
16 | PPI::Structure::Constructor | ||||
17 | isa PPI::Structure | ||||
18 | isa PPI::Node | ||||
19 | isa PPI::Element | ||||
20 | |||||
21 | =head1 DESCRIPTION | ||||
22 | |||||
23 | C<PPI::Structure::Constructor> is the class used for anonymous C<ARRAY> | ||||
24 | reference of C<HASH> reference constructors. | ||||
25 | |||||
26 | =head1 METHODS | ||||
27 | |||||
28 | C<PPI::Structure::Constructor> has no methods beyond those provided by | ||||
29 | the standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods. | ||||
30 | |||||
31 | Got any ideas for methods? Submit a report to rt.cpan.org! | ||||
32 | |||||
33 | =cut | ||||
34 | |||||
35 | 2 | 19µs | 2 | 36µs | # spent 24µs (11+12) within PPI::Structure::Constructor::BEGIN@35 which was called:
# once (11µs+12µs) by PPI::Structure::BEGIN@106 at line 35 # spent 24µs making 1 call to PPI::Structure::Constructor::BEGIN@35
# spent 12µs making 1 call to strict::import |
36 | 2 | 18µs | 1 | 3µs | # spent 3µs within PPI::Structure::Constructor::BEGIN@36 which was called:
# once (3µs+0s) by PPI::Structure::BEGIN@106 at line 36 # spent 3µs making 1 call to PPI::Structure::Constructor::BEGIN@36 |
37 | |||||
38 | 2 | 27µs | 2 | 61µs | # spent 34µs (6+27) within PPI::Structure::Constructor::BEGIN@38 which was called:
# once (6µs+27µs) by PPI::Structure::BEGIN@106 at line 38 # spent 34µs making 1 call to PPI::Structure::Constructor::BEGIN@38
# spent 27µs making 1 call to vars::import |
39 | # spent 8µs within PPI::Structure::Constructor::BEGIN@39 which was called:
# once (8µs+0s) by PPI::Structure::BEGIN@106 at line 42 | ||||
40 | 1 | 300ns | $VERSION = '1.215'; | ||
41 | 1 | 8µs | @ISA = 'PPI::Structure'; | ||
42 | 1 | 22µs | 1 | 8µs | } # spent 8µs making 1 call to PPI::Structure::Constructor::BEGIN@39 |
43 | |||||
44 | 1 | 2µ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 |