Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Perl/Critic/Utils/Perl.pm |
Statements | Executed 12 statements in 182µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 18µs | 21µs | BEGIN@12 | Perl::Critic::Utils::Perl::
1 | 1 | 1 | 15µs | 15µs | BEGIN@10 | Perl::Critic::Utils::Perl::
1 | 1 | 1 | 8µs | 13µs | BEGIN@14 | Perl::Critic::Utils::Perl::
1 | 1 | 1 | 6µs | 18µs | BEGIN@11 | Perl::Critic::Utils::Perl::
0 | 0 | 0 | 0s | 0s | symbol_without_sigil | Perl::Critic::Utils::Perl::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | ############################################################################## | ||||
2 | # $URL$ | ||||
3 | # $Date$ | ||||
4 | # $Author$ | ||||
5 | # $Revision$ | ||||
6 | ############################################################################## | ||||
7 | |||||
8 | package Perl::Critic::Utils::Perl; | ||||
9 | |||||
10 | 2 | 36µs | 1 | 15µs | # spent 15µs within Perl::Critic::Utils::Perl::BEGIN@10 which was called:
# once (15µs+0s) by Perl::Critic::Policy::NamingConventions::Capitalization::BEGIN@25 at line 10 # spent 15µs making 1 call to Perl::Critic::Utils::Perl::BEGIN@10 |
11 | 2 | 22µs | 2 | 29µs | # spent 18µs (6+11) within Perl::Critic::Utils::Perl::BEGIN@11 which was called:
# once (6µs+11µs) by Perl::Critic::Policy::NamingConventions::Capitalization::BEGIN@25 at line 11 # spent 18µs making 1 call to Perl::Critic::Utils::Perl::BEGIN@11
# spent 11µs making 1 call to strict::import |
12 | 2 | 22µs | 2 | 25µs | # spent 21µs (18+4) within Perl::Critic::Utils::Perl::BEGIN@12 which was called:
# once (18µs+4µs) by Perl::Critic::Policy::NamingConventions::Capitalization::BEGIN@25 at line 12 # spent 21µs making 1 call to Perl::Critic::Utils::Perl::BEGIN@12
# spent 4µs making 1 call to warnings::import |
13 | |||||
14 | 2 | 96µs | 2 | 19µs | # spent 13µs (8+6) within Perl::Critic::Utils::Perl::BEGIN@14 which was called:
# once (8µs+6µs) by Perl::Critic::Policy::NamingConventions::Capitalization::BEGIN@25 at line 14 # spent 13µs making 1 call to Perl::Critic::Utils::Perl::BEGIN@14
# spent 6µs making 1 call to Exporter::import |
15 | |||||
16 | 1 | 600ns | our $VERSION = '1.121'; | ||
17 | |||||
18 | #----------------------------------------------------------------------------- | ||||
19 | |||||
20 | 1 | 700ns | our @EXPORT_OK = qw( | ||
21 | symbol_without_sigil | ||||
22 | ); | ||||
23 | |||||
24 | 1 | 1µs | our %EXPORT_TAGS = ( | ||
25 | all => \@EXPORT_OK, | ||||
26 | ); | ||||
27 | |||||
28 | #----------------------------------------------------------------------------- | ||||
29 | |||||
30 | sub symbol_without_sigil { | ||||
31 | my ($symbol) = @_; | ||||
32 | |||||
33 | (my $without_sigil = $symbol) =~ s< \A [\$@%*&] ><>xms; | ||||
34 | |||||
35 | return $without_sigil; | ||||
36 | } | ||||
37 | |||||
38 | #----------------------------------------------------------------------------- | ||||
39 | |||||
40 | 1 | 3µs | 1; | ||
41 | |||||
42 | __END__ |