line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Archive::Any::Plugin; |
2
|
|
|
|
|
|
|
$Archive::Any::Plugin::VERSION = '0.0945'; |
3
|
4
|
|
|
4
|
|
12
|
use strict; |
|
4
|
|
|
|
|
3
|
|
|
4
|
|
|
|
|
83
|
|
4
|
4
|
|
|
4
|
|
12
|
use warnings; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
74
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
1473
|
use Module::Find; |
|
4
|
|
|
|
|
3346
|
|
|
4
|
|
|
|
|
191
|
|
7
|
4
|
|
|
4
|
|
16
|
use Cwd; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
388
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _extract { |
10
|
4
|
|
|
4
|
|
8
|
my ( $self, $file, $dir ) = @_; |
11
|
|
|
|
|
|
|
|
12
|
4
|
|
|
|
|
3
|
my $orig_dir; |
13
|
4
|
50
|
|
|
|
13
|
if ( defined $dir ) { |
14
|
0
|
|
|
|
|
0
|
$orig_dir = getcwd; |
15
|
0
|
|
|
|
|
0
|
chdir $dir; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
|
|
11
|
my $success = $self->extract( $file ); |
19
|
|
|
|
|
|
|
|
20
|
4
|
50
|
|
|
|
10105
|
if ( defined $dir ) { |
21
|
0
|
|
|
|
|
0
|
chdir $orig_dir; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
4
|
|
|
|
|
40
|
return 1; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# ABSTRACT: Anatomy of an Archive::Any plugin. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |