line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package namespace::allclean; |
2
|
3
|
|
|
3
|
|
138662
|
use strict; |
|
3
|
|
|
|
|
30
|
|
|
3
|
|
|
|
|
87
|
|
3
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
116
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = "0.01"; |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
1569
|
use B::Hooks::EndOfScope; |
|
3
|
|
|
|
|
33946
|
|
|
3
|
|
|
|
|
19
|
|
8
|
3
|
|
|
3
|
|
1751
|
use namespace::clean; |
|
3
|
|
|
|
|
13116
|
|
|
3
|
|
|
|
|
19
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
3
|
|
|
3
|
|
109
|
my ($class, %args) = @_; |
12
|
3
|
100
|
|
|
|
14
|
my $cleanee = exists $args{-cleanee} ? $args{-cleanee} : scalar caller; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
on_scope_end { |
15
|
3
|
|
|
3
|
|
192
|
my $subs = namespace::clean->get_functions($cleanee); |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
322
|
my @clean = keys %$subs; |
18
|
|
|
|
|
|
|
|
19
|
3
|
|
|
|
|
12
|
namespace::clean->clean_subroutines($cleanee, @clean); |
20
|
3
|
|
|
|
|
18
|
}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |