in reply to How can I tell if a string contains binary data or plain-old text?
open A,"<",\$a or die 1;print +(-T(A) ? "text" : "bin"), $/;close A;'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How can I tell if a string contains binary data or plain-old text?
by dakkar (Hermit) on Oct 31, 2003 at 14:34 UTC |