line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package namespace::allclean; |
2
|
3
|
|
|
3
|
|
142580
|
use strict; |
|
3
|
|
|
|
|
25
|
|
|
3
|
|
|
|
|
90
|
|
3
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
120
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = "0.03"; |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
1467
|
use B::Hooks::EndOfScope; |
|
3
|
|
|
|
|
34684
|
|
|
3
|
|
|
|
|
22
|
|
8
|
3
|
|
|
3
|
|
1670
|
use namespace::clean; |
|
3
|
|
|
|
|
13441
|
|
|
3
|
|
|
|
|
18
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
3
|
|
|
3
|
|
113
|
my ($class, %args) = @_; |
12
|
3
|
100
|
|
|
|
14
|
my $cleanee = exists $args{-cleanee} ? $args{-cleanee} : scalar caller; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
on_scope_end { |
15
|
3
|
|
|
3
|
|
185
|
my $subs = namespace::clean->get_functions($cleanee); |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
313
|
my @clean = keys %$subs; |
18
|
|
|
|
|
|
|
|
19
|
3
|
|
|
|
|
50
|
namespace::clean->clean_subroutines($cleanee, @clean); |
20
|
3
|
|
|
|
|
19
|
}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |