Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: check *.tmp wether it's a zip or not

by tomhukins (Curate)
on Nov 26, 2004 at 11:04 UTC ( #410558=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: check *.tmp wether it's a zip or not
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://410558]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2015-07-31 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls