line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Tasks::Task; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# See POD at end for docs |
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
25
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
189
|
|
6
|
4
|
|
|
4
|
|
18
|
use overload 'bool' => sub () { 1 }; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
39
|
|
7
|
4
|
|
|
4
|
|
213
|
use overload '""' => 'path'; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
14
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
189
|
use vars qw{$VERSION}; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
168
|
|
10
|
|
|
|
|
|
|
BEGIN { |
11
|
4
|
|
|
4
|
|
355
|
$VERSION = '0.07'; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
##################################################################### |
19
|
|
|
|
|
|
|
# Constructor and Accessors |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub new { |
22
|
5
|
|
|
5
|
0
|
9
|
my $class = shift; |
23
|
5
|
50
|
|
|
|
14
|
my $path = defined $_[1] ? $_[1] : return undef; |
24
|
5
|
|
|
|
|
31
|
bless { path => $path }, $class; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
10
|
|
|
10
|
0
|
60
|
sub path { $_[0]->{path} } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |