http://qs321.pair.com?node_id=410558


in reply to check *.tmp wether it's a zip or not

You could use something like File::Type to check whether the file looks like an application/zip file or not, before passing it to Archive::Zip.