open A,"<",\$a or die 1;print +(-T(A) ? "text" : "bin"), $/;close A;'
In reply to Re: How can I tell if a string contains binary data or plain-old text?
by ambrus
in thread How can I tell if a string contains binary data or plain-old text?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |