in reply to Re: Getting File Type using Regular Expressions
in thread Getting File Type using Regular Expressions
- On Unix, a tool called 'file' has a large and growing database of file type heuristics. File::Type is a Perl module equivalent. These read just enough of a file to make a solid guess as to the type, and report it.
perl -le "print unpack'N', pack'B32', '00000000000000000000001011010010'"
In Section
Seekers of Perl Wisdom