Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Archive::Zip Error

by bluesplay106 (Novice)
on Jun 13, 2013 at 16:13 UTC ( #1038789=perlquestion: print w/ replies, xml ) Need Help??
bluesplay106 has asked for the wisdom of the Perl Monks concerning the following question:

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

Comment on Archive::Zip Error
Re: Archive::Zip Error
by Anonymous Monk on Jun 13, 2013 at 16:19 UTC

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

    Sure, eval

      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

Re: Archive::Zip Error
by ww (Bishop) on Jun 13, 2013 at 16:44 UTC
    Pls see I know what I mean. Why don't you?.
    • what errors?
    • what code?

    Pls be more specific. You can update this node (include a note that you did so) to provide the code that causes the error and the error message(s).


    If you didn't program your executable by toggling in binary, it wasn't really programming!

      I received an 'format error: CRC or size mismatch after reading data descriptor' from Archive::Zip, but I just want a way to ignore it. I did eval and that didn't work.

        bluesplay106:

        Are you sure it's failing on the read? You might put the new into the eval as well. I've not used Archive::ZIP, but if I were implementing it, I'd read the table of contents when I opened the file.

        ...roboticus

        When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1038789]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2014-11-26 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (168 votes), past polls