line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package List::AllUtils; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
219865
|
use strict; |
|
3
|
|
|
|
|
30
|
|
|
3
|
|
|
|
|
114
|
|
4
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
206
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.19'; |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
21
|
use List::Util 1.56 (); |
|
3
|
|
|
|
|
79
|
|
|
3
|
|
|
|
|
105
|
|
9
|
3
|
|
|
3
|
|
1796
|
use List::SomeUtils 0.58 (); |
|
3
|
|
|
|
|
41900
|
|
|
3
|
|
|
|
|
117
|
|
10
|
3
|
|
|
3
|
|
1886
|
use List::UtilsBy 0.11 (); |
|
3
|
|
|
|
|
6035
|
|
|
3
|
|
|
|
|
187
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
BEGIN { |
13
|
3
|
|
|
3
|
|
20
|
my %skip = ( |
14
|
|
|
|
|
|
|
'List::Util' => { |
15
|
|
|
|
|
|
|
mesh => 1, |
16
|
|
|
|
|
|
|
zip => 1, |
17
|
|
|
|
|
|
|
}, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
3
|
|
|
|
|
7
|
my %imported; |
21
|
3
|
|
|
|
|
9
|
for my $module (qw( List::Util List::SomeUtils List::UtilsBy )) { |
22
|
9
|
|
|
|
|
17
|
my @ok = do { |
23
|
|
|
|
|
|
|
## no critic (TestingAndDebugging::ProhibitNoStrict) |
24
|
3
|
|
|
3
|
|
27
|
no strict 'refs'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
240
|
|
25
|
9
|
|
|
|
|
14
|
grep { !$skip{$module}{$_} } @{ $module . '::EXPORT_OK' }; |
|
327
|
|
|
|
|
647
|
|
|
9
|
|
|
|
|
40
|
|
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
9
|
|
|
|
|
20
|
$module->import( grep { !$imported{$_} } @ok ); |
|
321
|
|
|
|
|
1824
|
|
29
|
|
|
|
|
|
|
|
30
|
9
|
|
|
|
|
286
|
@imported{@ok} = ($module) x @ok; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
3
|
|
|
3
|
|
24
|
use base 'Exporter'; |
|
3
|
|
|
|
|
17
|
|
|
3
|
|
|
|
|
697
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our @EXPORT_OK = List::Util::uniqstr( |
37
|
|
|
|
|
|
|
@List::Util::EXPORT_OK, |
38
|
|
|
|
|
|
|
@List::SomeUtils::EXPORT_OK, |
39
|
|
|
|
|
|
|
@List::UtilsBy::EXPORT_OK, |
40
|
|
|
|
|
|
|
); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( all => \@EXPORT_OK ); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# ABSTRACT: Combines List::Util, List::SomeUtils and List::UtilsBy in one bite-sized package |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |