|more useful options|
check *.tmp wether it's a zip or notby Anonymous Monk
|on Nov 26, 2004 at 10:52 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I'm quite happily using Archive::Zip, but what I'm missing is a test wether the file is a zip file or not.
I receive attached files (*.txt, *.log and *.zip) by email.
No I want to check if the actual file (kluai8qwz.tmp) is it a zip-file (-> continue) or not (->next).
Right now I try to access that file
and I get this (unnecessary) errormessage:
Well the Error_Code is set as well, but this would be enough.
Does anybody know a more elegant way of a zip-check?
Thanks in advance