line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pipe::Tube::Glob; |
2
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
4
|
1
|
|
|
1
|
|
16
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use base 'Pipe::Tube'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
226
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.06'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
2
|
|
|
2
|
0
|
5
|
my ($self, @patterns) = @_; |
12
|
2
|
|
|
|
|
3
|
@{ $self->{patterns} } = @patterns; |
|
2
|
|
|
|
|
6
|
|
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
6
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub finish { |
18
|
2
|
|
|
2
|
0
|
2
|
my ($self) = @_; |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
|
|
3
|
return glob join " ", @{ $self->{patterns} }; |
|
2
|
|
|
|
|
183
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# this module should be rewritten using opendir |
24
|
|
|
|
|
|
|
# the patterns should be either unix wilde cards or Perl regexes (with a flag indicating which one) |
25
|
|
|
|
|
|
|
# |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|