I stand corrected re the multiple extractions. Your simplified code does attempt to do so.

re 'error messages' however, I still don't see them. Executing perldoc Archive::Zip will tell you:

ERROR CODES Many of the methods in Archive::Zip return error codes. These are implemented as inline subroutines, using the "use constant" pragma +. They can be imported into your namespace using the ":ERROR_CODES" tag: use Archive::Zip qw( :ERROR_CODES ); ... unless ( $zip->read( 'myfile.zip' ) == AZ_OK ) { die "whoops!"; } AZ_OK (0) Everything is fine. AZ_STREAM_END (1) The read stream (or central directory) ended normally. AZ_ERROR (2) There was some generic kind of error. AZ_FORMAT_ERROR (3) There is a format error in a ZIP file being read. AZ_IO_ERROR (4) There was an IO error.

The only one of these you cite is "AZ_STREAM_END" which does NOT indicate an error; far less, what kind of error.

However, attempting to execute you alternate code (under w2k with A::Z v130 on perl 5.8 with strict and warnings; do you use these pragmas?) does pop up a message:

Can't locate object method "extractToFileNames" via package "Archive::Zip::ZipFileMember" at 848152.pl line 13.

And the meaning of your reply re suspecting the module boils down to interpretation of the wink? Perhaps you should consult the author, Adam Kennedy... but with better evidence than a wink.


In reply to Re^3: unable to extract same file twice using Archive::Zip by ww
in thread unable to extract same file twice using Archive::Zip by Pickwick

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.