Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: Archive::Zip Error

by bluesplay106 (Novice)
on Jun 13, 2013 at 17:22 UTC ( #1038801=note: print w/replies, xml ) Need Help??

in reply to Re: Archive::Zip Error
in thread Archive::Zip Error

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?

Replies are listed 'Best First'.
Re^3: Archive::Zip Error
by Anonymous Monk on Jun 13, 2013 at 17:28 UTC

    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";}

        Archive::Zip's read method is documented to return an integer to signal an error, it won't die

        I can't post my code due to my internship

        Your actual code isn't required, just something that triggers the same error/problem, and something that doesn't require purchasing a special brand of soap, something self contained

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038801]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-10-26 21:51 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (350 votes). Check out past polls.