The stupid question is the question not asked | |
PerlMonks |
Multiple copies of the same file in same ZIP archiveby bofh_of_oz (Hermit) |
on May 31, 2005 at 18:23 UTC ( [id://462149]=perlquestion: print w/replies, xml ) | Need Help?? |
bofh_of_oz has asked for the wisdom of the Perl Monks concerning the following question:
In a script i'm working on, I create a ZIP archive and add a file to it. Or, if the zip file exists, just add the file to it. I have noticed a strange thing: I tell the script to add the same file to the ZIP archive many times, then open the archive with Winzip and what do I see? There are indeed many files inside - with the same filename! When I try to rename/delete those files, each of them is treated independently of others. Even though this behaviour seems logical to me, I cannot reproduce the same functionality when I use PKZIP/Winzip/any other utility... Is that an 'undocumented feature' of Perl or what? The code used is here:
--------------------------------
Back to
Seekers of Perl Wisdom
|
|