line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package namespace::allclean; |
2
|
3
|
|
|
3
|
|
152827
|
use strict; |
|
3
|
|
|
|
|
28
|
|
|
3
|
|
|
|
|
102
|
|
3
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
147
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = "0.02"; |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
1520
|
use B::Hooks::EndOfScope; |
|
3
|
|
|
|
|
37881
|
|
|
3
|
|
|
|
|
93
|
|
8
|
3
|
|
|
3
|
|
2008
|
use namespace::clean; |
|
3
|
|
|
|
|
14542
|
|
|
3
|
|
|
|
|
26
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
3
|
|
|
3
|
|
128
|
my ($class, %args) = @_; |
12
|
3
|
100
|
|
|
|
17
|
my $cleanee = exists $args{-cleanee} ? $args{-cleanee} : scalar caller; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
on_scope_end { |
15
|
3
|
|
|
3
|
|
204
|
my $subs = namespace::clean->get_functions($cleanee); |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
371
|
my @clean = keys %$subs; |
18
|
|
|
|
|
|
|
|
19
|
3
|
|
|
|
|
13
|
namespace::clean->clean_subroutines($cleanee, @clean); |
20
|
3
|
|
|
|
|
19
|
}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |