|P is for Practical|
Re^2: Archive::Zip - How to selectively copy files from one archive to another one?by Gigabyte1907 (Initiate)
|on Aug 11, 2012 at 18:08 UTC||Need Help??|
Hello Mr. Muskrat and thanks for your reply.
I didn't have the code that I tried and I tried so many things that I decided to start from scratch... ;-)
Anyway I have tried your answer and first of all, it doesn't really answer the question because I was asking about selectively extract from one Zip and copy the files into another Zip. Which mean that I do not know yet what the file list is.
Based on your example and trying to remember what I did before, here is the code that I came up with:
When I try to execute this code, I have this error message:Can't call method "desiredCompressionLevel" on an undefined value at c:/perl/lib/Archive/Zip/Archive.pm line 249
When I try to print the content of the array @FileMembers123, this is what I get:
It seems that I cannot get the file names using the command my @FileMembers123 = $oldzip->membersMatching("123.*\.xml");.
If I could generate the list of the files (using a matching pattern) in my old Zip without unzipping it, it would probably work.