File::MMagic とほぼおなじですが。
mod_perl でもちゃんと動くみたいす。
I've finally uploaded a module to CPAN.
File::Type uses magic to find out the type of a file, like file(1). Of course, the observant will point out that this merely duplicates the functionality of File::MMagic (and, the eager CPAN watcher will note, File::MimeInfo).