blib/lib/PAR/dump_db.pl untested

filter: Statementstmt 0.0% 0 / 32 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 45 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4 use DBM::Deep;
5 use File::Spec;
6 use Cwd;
7 my $file = shift @ARGV or die;
8 my $zip = 0;
9 if ($file =~ /\.zip$/i) {
10 $zip = 1;
11 my ($v,$p,$f) = File::Spec->splitpath($file);
12 my $dir = Cwd::cwd();
13 chdir($p);
14 system('unzip', $f);
15 chdir $dir;
16 $file =~ s/\.zip$//i;
17 }
18 tie my %hash => 'DBM::Deep', $file;
19 use Data::Dumper;
20 print Dumper \%hash;
21 if ($zip) {
22 unlink($file);
23 }