NAME MIME::Type::Simple - MIME Media Types and their file extensions REQUIREMENTS The following non-core modules are required: Sub::Exporter INSTALLATION Installation can be done using the traditional Makefile.PL or the newer Build.PL methods. Using Makefile.PL: perl Makefile.PL make test make install (On Windows platforms you should use `nmake' instead.) Using Build.PL (if you have Module::Build installed): perl Build.PL perl Build test perl Build install VERSION Version 0.01 SYNOPSIS use MIME::Type::Simple; $type = type_from_ext("jpg"); # returns "image/jpeg" $ext = ext_from_type("text/plain"); # returns "txt" DESCRIPTION This package gives a simple functions for obtaining common file extensions from MIME types, and from obtaining MIME types from file extensions. It is also relaxed with respect to having multiple MIME types associated with a file extension, or multiple extensions associated with a MIME type. It is defined this way in the default data, but you can have it use a system file (e.g. /etc/mime.types) alternatively. By default, there is a functional interface, although you can also use an object-oriented inteface. REVISION HISTORY For a detailed history see the Changes file included in this distribution. SEE ALSO The MIME::Types module has a similar functionality, but a much more complex interface. An "official" list of Media Types can be found at http://www.iana.org/assignments/media-types. AUTHOR Robert Rothenberg Suggestions and Bug Reporting Feedback is always welcome. Please use the CPAN Request Tracker at http://rt.cpan.org to submit bug reports. ACKNOWLEDGEMENTS Some of the code comes from self module (by Kang-min Liu). The data for the MIME types is based on the Debian mime-support package, http://packages.debian.org/mime-support, although with *many* changes from the original. COPYRIGHT & LICENSE Copyright 2009 Robert Rothenberg, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.