http://www.perlmonks.org?node_id=770257


in reply to understanding file type

You don't say on which platform you're running, but if it's *NIX, then file(1) (which uses /etc/magic) is your friend - see man file.

A user level that continues to overstate my experience :-))