line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Package::Subroutine::Namespace |
2
|
|
|
|
|
|
|
# ************************************** |
3
|
|
|
|
|
|
|
; our $VERSION='0.01' |
4
|
|
|
|
|
|
|
# ******************* |
5
|
1
|
|
|
|
|
31
|
; use strict ('vars','subs') |
6
|
1
|
|
|
1
|
|
20075
|
; use warnings |
|
1
|
|
|
|
|
3
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
5
|
; use Perl6::Junction () |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
640
|
; sub list_childs |
|
1
|
|
|
|
|
11913
|
|
|
1
|
|
|
|
|
158
|
|
11
|
5
|
|
|
5
|
1
|
476
|
{ my ($self,$package) = @_ |
12
|
7
|
|
|
|
|
18
|
; map { s/::$// ; $_ } |
|
7
|
|
|
|
|
27
|
|
|
12
|
|
|
|
|
38
|
|
13
|
5
|
|
|
|
|
6
|
grep { /::$/ } keys %{"${package}::"} |
|
5
|
|
|
|
|
14
|
|
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
; sub delete_childs |
17
|
2
|
|
|
2
|
1
|
596
|
{ my ($self,$package,@keep) = @_ |
18
|
2
|
|
|
|
|
6
|
; for my $chld ($self->list_childs($package)) |
19
|
4
|
100
|
|
|
|
30
|
{ next if $chld eq Perl6::Junction::any(@keep) |
20
|
3
|
|
|
|
|
136
|
; delete ${"${package}::"}{"${chld}::"} |
|
3
|
|
|
|
|
42
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
; 1 |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |