Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
A simple one here - I have a small script which spell checks and corrects other files where necessary (amongst other things). I therefore need the functional equivalent of `file` and am only interested in "text" or "ASCII" files.
From your experience, is the built in -T test good enough - if not, what would be a good alternative (I'm trying to avoid spawning external progs)? The target platform is unices of varying flavours.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How reliable is -T as a test for ASCII files?
by calin (Deacon) on May 12, 2004 at 17:40 UTC | |
by cLive ;-) (Prior) on May 12, 2004 at 23:17 UTC | |
|
Re: How reliable is -T as a test for ASCII files?
by zentara (Cardinal) on May 13, 2004 at 14:09 UTC | |
by Anonymous Monk on May 13, 2004 at 23:21 UTC |