line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Wildcard::Find; |
2
|
1
|
|
|
1
|
|
72516
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
BEGIN { |
5
|
1
|
|
|
1
|
|
5
|
use Exporter (); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
23
|
|
6
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $finder); |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
163
|
|
7
|
1
|
|
|
1
|
|
2
|
$VERSION = '0.01'; |
8
|
1
|
|
|
|
|
16
|
@ISA = qw(Exporter); |
9
|
1
|
|
|
|
|
2
|
@EXPORT = qw(findbegin findnext findall); |
10
|
1
|
|
|
|
|
3
|
@EXPORT_OK = qw(findbegin findnext findall $finder); |
11
|
1
|
|
|
|
|
36
|
%EXPORT_TAGS = ( all => \@EXPORT_OK ); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
729
|
use File::Wildcard; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
142
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub findbegin { |
17
|
1
|
|
|
1
|
1
|
18
|
$finder = File::Wildcard->new( path => shift ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub findnext { |
21
|
2
|
|
|
2
|
1
|
719
|
$finder->next; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub findall { |
25
|
1
|
|
|
1
|
1
|
6
|
my $allfinder = File::Wildcard->new( path => shift ); |
26
|
1
|
|
|
|
|
5
|
$allfinder->all; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |