in reply to Checking if a file is present in a ZIP archive
So, my $zip = Archive::Zip->new($file) or die "$file cannot be opened by zip\n" should do. The barfed bunch are not errors but warnings.If a filename argument is passed and the read fails for any reason, new will return undef.my $zip = Archive::Zip->new( 'xyz.zip' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking if a file is present in a ZIP archive
by bontchev (Sexton) on Mar 25, 2011 at 20:35 UTC | |
by bart (Canon) on Mar 25, 2011 at 21:13 UTC | |
|
Re^2: Checking if a file is present in a ZIP archive
by toolic (Bishop) on Mar 25, 2011 at 17:24 UTC |