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
In reply to Re: determine file type from data read from filehandle
by Eily
in thread determine file type from data read from filehandle
by expo1967
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |