I hear PSI::FileContents is popular for doing this. Ahem, sorry.
If you want to list the files in a zip archive perhaps just unzip -l archive.zip will do what you like. That's what man zip tells me at least. I'm sure there are dos/windows equivalents.
If you really need to use Perl to do this check out Archive::Zip It looks like the memberNames method might return a list of the files within the archive.
Something to keep in mind is that somewhere either of these methods has to open() the file - otherwise how would they get any information from it? (I|We) could probably be of more help if you could provide more information about what you want to do.
{NULE}
--
http://www.nule.org
In reply to Re: Reading contents of a zip file without opening it
by {NULE}
in thread Reading contents of a zip file without opening it
by WintersMystic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |