SVK::MimeDetect - interface for MIME type detection algorithms
This defines an interface for MIME type detection algorithms. A MIME type detection module doesn't need to inherit from this module, but it does need to provide the same interface. See "INTERFACE" for details.
new should return a new object which implements the "checktype_filename" method described below. The default implementation simply returns an empty, blessed hash.
new
Given a single, absolute filename as an argument, this method should return a scalar with the MIME type of the file or undef if there is an error.
undef
Michael Hendricks <michael@ndrix.org>
Copyright 2003-2006 by Chia-liang Kao <clkao@clkao.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install SVK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVK
CPAN shell
perl -MCPAN -e shell install SVK
For more information on module installation, please visit the detailed CPAN module installation guide.