in reply to determine file type from data read from filehandle

Please look at Markup in the Monastery to add some formatting to your post.

To answer your question, I'd still look at the file extension as a first option. If that fails, the -T or -B tests might help, but as documented, they are guesses

  • Comment on Re: determine file type from data read from filehandle