in reply to How can I tell if a string contains binary data or plain-old text?

File::MMagic - Guess file type

Or run the file thru the system command "file".

  • Comment on Re: How can I tell if a string contains binary data or plain-old text?