line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Next::OO; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$VERSION = '0.04'; |
4
|
3
|
|
|
3
|
|
67368
|
use File::Next 0.38; |
|
3
|
|
|
|
|
6324
|
|
|
3
|
|
|
|
|
73
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
#use warnings; |
7
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
513
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
BEGIN { |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
8
|
100
|
|
8
|
1
|
12931
|
shift if ref $_[1] eq 'HASH'; |
13
|
8
|
|
|
|
|
36
|
my $i = File::Next::files(@_); |
14
|
7
|
100
|
|
|
|
849
|
return wantarray ? do { my @t; while( my $f = $i->() ){ push @t, $f } @t } : $i; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
|
17
|
|
|
|
|
2147
|
|
|
1
|
|
|
|
|
24
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
3
|
|
9
|
*files = *new; |
18
|
3
|
|
|
|
|
10
|
*name = *File::Next::name; |
19
|
3
|
|
|
|
|
62
|
*dir = *File::Next::dir; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub dirs { |
22
|
1
|
50
|
|
1
|
1
|
2409
|
shift if ref $_[1] eq 'HASH'; |
23
|
1
|
|
|
|
|
6
|
my $i = File::Next::dirs(@_); |
24
|
1
|
50
|
|
|
|
70
|
return wantarray ? do { my @t; while( my $f = $i->() ){ push @t, $f } @t } : $i; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |