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?? |
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
In Section
Seekers of Perl Wisdom
|
|