You could look at the perl implementation of the unix file utility. It is(was) part of the PPT project.
In reply to Re: Distinguishing text from binary data
by data64
in thread Distinguishing text from binary data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |