line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
13
|
|
|
13
|
|
2911350
|
use strict; |
|
13
|
|
|
|
|
36
|
|
|
13
|
|
|
|
|
528
|
|
2
|
13
|
|
|
13
|
|
74
|
use warnings; |
|
13
|
|
|
|
|
43
|
|
|
13
|
|
|
|
|
5346
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Path::Class::Rule; |
5
|
|
|
|
|
|
|
# ABSTRACT: Iterative, recursive file finder with Path::Class |
6
|
|
|
|
|
|
|
our $VERSION = '0.018'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
13
|
|
|
13
|
|
17453
|
use Path::Iterator::Rule 0.002; # new _children API |
|
13
|
|
|
|
|
332830
|
|
|
13
|
|
|
|
|
941
|
|
9
|
|
|
|
|
|
|
our @ISA = qw/Path::Iterator::Rule/; |
10
|
|
|
|
|
|
|
|
11
|
13
|
|
|
13
|
|
147
|
use Path::Class; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
1277
|
|
12
|
13
|
|
|
13
|
|
26859
|
use namespace::clean; |
|
13
|
|
|
|
|
352037
|
|
|
13
|
|
|
|
|
101
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub _objectify { |
15
|
41
|
|
|
41
|
|
1140779
|
my $self = shift; |
16
|
41
|
|
|
|
|
453
|
my $path = "" . shift; |
17
|
41
|
50
|
|
|
|
2635
|
return -d $path ? dir($path) : file($path); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _children { |
21
|
115
|
|
|
115
|
|
64286
|
my $self = shift; |
22
|
115
|
|
|
|
|
192
|
my $path = shift; |
23
|
115
|
|
|
|
|
552
|
return map { [ $_->basename, $_ ] } $path->children; |
|
225
|
|
|
|
|
145983
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# vim: ts=4 sts=4 sw=4 et: |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |