I must extract the file from the archive twice as i cannot copy the extracted version to the second location

Of course I can. Ihe problem is that I don't wanted to always remember what already has been extracted, let it stay on the disk, reuse it, if even necessary, and cleanup later. Extracting it a second time if I already know that it's needed and don't have to look if it's already extracted would have been less code.

Forgive me, but I don't understand. I would gladly offer whatever help I can provide, but this problem your facing doesn't make sense... please clarify

The main question is: Is there a limitation on how often one can extract the same zip member and if, why? I don't see any reason why one shouldn't be able to extract a member more than once, if he wants to.

If this approach is unsuitable, why not?

In my mind it's waste of space to extract everything at once if I always just need one or two files from the archive. If there are two same named files in the archive you get a problem, too.

But as I said before, I really would like to know if it's possible to extract a member more than once or not. Maybe I'm just missing something like endRead in the proper way or stuff like that.


In reply to Re^4: unable to extract same file twice using Archive::Zip by Pickwick
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.