MIME::Type::FileName - guess MIME type using file name extensions
in your Perl code:
use MIME::Type::FileName; my $mimetype = MIME::Type::FileName::guess ("my-file.xls");
It sounds rather silly, but I can't find a module on CPAN which does something this simple.
Hence I wrote it and released it.
None.
This library is so simple, I guess any bugs would be related to missing mime types. It's probably all very wrong for some reason.
If you think something is missing, please drop me a mail.
Jean-Michel Hiver - jhiver (at) gmail (dot) com
This module free software and is distributed under the same license as Perl itself. Use it at your own risk.
To install MIME::Type::FileName, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MIME::Type::FileName
CPAN shell
perl -MCPAN -e shell install MIME::Type::FileName
For more information on module installation, please visit the detailed CPAN module installation guide.