in reply to How best to identify & Categorize Source Code?
Try File::Type. I've used it only a bit, but it at least claims to fix some of the problems with File::MMagic.
In Section
Seekers of Perl Wisdom
in reply to How best to identify & Categorize Source Code?