line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pipe::Tube::Find; |
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
4
|
1
|
|
|
1
|
|
14
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use base 'Pipe::Tube'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
112
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.06'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
499
|
use File::Find::Rule; |
|
1
|
|
|
|
|
8080
|
|
|
1
|
|
|
|
|
7
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub init { |
13
|
1
|
|
|
1
|
0
|
2
|
my ($self, @dirs) = @_; |
14
|
1
|
|
|
|
|
4
|
my $rule = File::Find::Rule->new; |
15
|
1
|
|
|
|
|
11
|
$rule->start('.'); |
16
|
1
|
|
|
|
|
4960
|
$self->{rule} = $rule; |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
4
|
return $self; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub run { |
22
|
80
|
|
|
80
|
0
|
105
|
my ($self) = @_; |
23
|
|
|
|
|
|
|
|
24
|
80
|
100
|
|
|
|
124
|
if (my $thing = $self->{rule}->match) { |
25
|
79
|
|
|
|
|
732
|
return $thing; |
26
|
|
|
|
|
|
|
} else { |
27
|
1
|
|
|
|
|
10
|
return; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|