|laziness, impatience, and hubris|
Answer: How do I determine encoding format of a file ?by particle (Vicar)
|on May 10, 2003 at 02:35 UTC||Need Help??|
have a look at File::MMagic, it guesses the filetype given the filename or a filehandle, and is quite configurable (you can add more file type descriptions based on regular expressions.) it's a handy little module.