line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package lib::require::all; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
34319
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
208
|
|
4
|
1
|
|
|
1
|
|
58
|
use 5.008_001; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
58
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
1476
|
use lib (); |
|
1
|
|
|
|
|
1281
|
|
|
1
|
|
|
|
|
26
|
|
8
|
1
|
|
|
1
|
|
16
|
use File::Find; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
499
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
1
|
|
|
1
|
|
13
|
my($class, @dir) = @_; |
12
|
1
|
50
|
|
|
|
7
|
@dir = ('lib') unless @dir; |
13
|
1
|
|
|
|
|
6
|
lib->import(@dir); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
117
|
for my $dir (@dir) { |
16
|
1
|
|
|
|
|
1
|
my @files; |
17
|
1
|
100
|
|
4
|
|
143
|
File::Find::find({ no_chdir => 1, wanted => sub { push @files, $_ if /\.pm$/ } }, $dir); |
|
4
|
|
|
|
|
520
|
|
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
7
|
for my $file (@files) { |
20
|
1
|
|
|
|
|
27
|
$file =~ s/^\Q$dir\E[\/\\]//; |
21
|
1
|
|
|
|
|
33
|
require $file; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
__END__ |