luxs has asked for the wisdom of the Perl Monks concerning the following question:
And the file myfile.tgz is broken. This code produce error on the screenuse Archive::Extract; my $ae = Archive::Extract->new( archive => 'myfile.tgz' ); my $ok = $ae->extract or die $ae->error;
and continue to execute the further code, but it should die!!! What was wrong? How to catch this error?Unable to extract 'myfile.tgz': at ./data_sort.pl line 156.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive::Extract - error handling
by kevbot (Vicar) on Aug 29, 2016 at 02:51 UTC | |
by luxs (Beadle) on Sep 01, 2016 at 00:11 UTC | |
by luxs (Beadle) on Sep 01, 2016 at 00:17 UTC | |
by choroba (Cardinal) on Sep 01, 2016 at 18:05 UTC | |
|
Re: Archive::Extract - error handling
by Anonymous Monk on Aug 29, 2016 at 02:02 UTC |