Aren't you assuming a specific tool was used to do the zipping, though? Or, is that a universal standard?
Try this (requires the Archive::Zip module):
Update:You may need some of the other Archive modules if you want to check for gzipped files.use Archive::Zip; $zip = Archive::Zip->new(); die "Invalid zip file!" if $zip->read("zipfile.zip") != AZ_OK;
In reply to Re: Re: testing for a zip file
by ChrisS
in thread testing for a zip file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |