[ANNOUNCE] File::MimeInfo 0.4

Jaap Karssenberg j.g.karssenberg at student.utwente.nl
Thu Aug 28 13:50:16 EEST 2003


The perl module File::MimeInfo version 0.4 is now available from
CPAN[1]. This module can be used to determine the mime type of a file;
it's a replacement for File::MMagic trying to implement the
freedesktop[2] specification for using the shared mime-info database.
The package comes with a script called 'mimetype' that can be used as a
file(1) work-alike.
 
[1] http://cpan.org 
(try "perl -MCPAN -e 'install q/File::MimeInfo/'" to fetch it)
[2] http://www.freedesktop.org/

This is the first release to actually use the magic file -
File::MimeInfo still only does globs but File::MimeInfo::Magic was
added. Also more options where added to the mimetype(1) script. I've
linked my file(1) command to mimetype(1) for a few days all ready
without problems - it's a rather painless replacement, but not
completely compatible.

The only TODO item to remain is mimetyping non-seekable filehandles like
STDIN.

-- 
   )   (       Jaap Karssenberg || Pardus [Larus]
   :   :       http://pardus-larus.student.utwente.nl/~pardus
 )  \ /  (    
 ",.*'*.,"     " Where computers are concerned _always_ be paranoid "



More information about the xdg mailing list