Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Following the examples in the module documentation I arrived at the following:
The results bother me for three reasons:use strict; use warnings; use Archive::Tar; my $device = '/dev/rmt/1'; my $tar = Archive::Tar->new(); warn $tar->error unless $tar->read($device); my $header_file = 'tape.header'; my @files = Archive::Tar->list_archive($device); my $junk = $tar->get_content($header_file) or die "### ERROR - No such file in archive: '$header_file'\n\n" +; __OUTPUT__ Warning: something's wrong at test.errors.pl line 7. No such file in archive: 'tape.header' at test.errors.pl line 11 ### ERROR - No such file in archive: 'tape.header'
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive::Tar and error handling
by BrowserUk (Patriarch) on Oct 25, 2003 at 19:01 UTC | |
by Anonymous Monk on Oct 25, 2003 at 20:53 UTC | |
|
Re: Archive::Tar and error handling
by liz (Monsignor) on Oct 25, 2003 at 18:07 UTC | |
|
Re: Archive::Tar and error handling
by b10m (Vicar) on Oct 25, 2003 at 19:06 UTC | |
by Anonymous Monk on Oct 25, 2003 at 19:59 UTC | |
by Anonymous Monk on Oct 25, 2003 at 23:55 UTC | |
|
Re: Archive::Tar and error handling
by Anonymous Monk on Oct 25, 2003 at 22:25 UTC |