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.
Postpone until later
Each and every
Results (231 votes),