in reply to Archive::Zip Error

Hi, Is there any way I can ignore Archive::Zip errors? Thanks

Sure, eval

Replies are listed 'Best First'.
Re^2: Archive::Zip Error
by bluesplay106 (Novice) on Jun 13, 2013 at 17:22 UTC
    I did try eval but I received a 'format error: CRC or size mismatch after reading data descriptor' from Archive::Zip and my program still exits. Is there a way to ignore it?

      Is there a way to ignore it?

      eval is the standard mechanism for ignoring errors. If eval isn't working for you, and you want help, you need to post some code

        I can't post my code due to my internship, so here is the general :
        $zip = Archive::Zip->new(); eval {$zip->read($filename);}; if($@) { print "Couldn't unzip $filename\n";}