But if you mean if it's a text file or not, Perl can try to guess if you check the file with -B operator.Note that this is just a guess, and some text files might confuse it. In particular, I've never tried it with UTF or ISO-8859-X files.
Another option is to call the Unix file function, and parse it's output to see if it thought you were dealing with a text file.
In reply to Re: Is It Text-Editable???
by matija
in thread Is It Text-Editable???
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |