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.
In reply to Archive::Extract - error handling by luxs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |