in reply to Re^2: Checking if a file is present in a ZIP archive
in thread Checking if a file is present in a ZIP archive

Then just grab the zipcheck.pl file from the CPAN MANIFEST link like I did:

http://cpansearch.perl.org/src/ADAMK/Archive-Zip-1.30/examples/zipcheck.pl

  • Comment on Re^3: Checking if a file is present in a ZIP archive

Replies are listed 'Best First'.
Re^4: Checking if a file is present in a ZIP archive
by bontchev (Sexton) on Mar 25, 2011 at 20:59 UTC

    Thanks!

    OK, problem solved. The trick was to suppress the error reporting from the package with

    Archive::Zip::setErrorHandler (sub { });

    before trying to process the file, as they do in this example (well, almost, they still print the first warning there, but the idea was clear). Then just skip the file, if the attempt to read it does not return AZ_OK.