"be consistent" | |
PerlMonks |
Listing contents and stats of ZIP archive contentsby cbullard (Initiate) |
on May 13, 2013 at 21:40 UTC ( [id://1033361]=perlquestion: print w/replies, xml ) | Need Help?? |
cbullard has asked for the wisdom of the Perl Monks concerning the following question: I am trying to list out the names and stats of the contents of a ZIP file. I've tried working with both Archive::Extract and IO::Uncompress with no success. I've even tried using this code straight from the PerlMonks Archives:
but all I get for output is: $ ./ziptest.pl X zipbatch/testzip.zip testout.txt Zip.pl Author:Include Extracting zipbatch/testzip.zip... Archive::Zip::ZipFileMember=HASH(0x1e68844) Archive::Zip::ZipFileMember=HASH(0x1e68e14) Archive::Zip::ZipFileMember=HASH(0x1e68fe4) Archive::Zip::ZipFileMember=HASH(0x1a4890c) Done! How can I access the list of files inside the zip archive and the stats for them (size, mod date, etc)? Thank you!
Back to
Seekers of Perl Wisdom
|
|