Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: how to Check file type?

by Your Mother (Archbishop)
on Dec 02, 2010 at 16:09 UTC ( [id://874928]=note: print w/replies, xml ) Need Help??


in reply to how to Check file type?

An approach might include MIME::Types + File::Basename. That said, you need to remember the extensions do not guarantee content/type-

mv pr0n.jpg annual-report.xls

Replies are listed 'Best First'.
Re^2: how to Check file type?
by liverpole (Monsignor) on Dec 03, 2010 at 15:42 UTC
    What the heck is this adult content doing in my spreadsheet!?!  ;-)
    
    

    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-03-28 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found