in reply to How reliable is -T as a test for ASCII files?
So you might want to do some intelligent filtering with a modules like MIME::Types.
You could also do some extension testing depending on the type of files you have on your system.use MIME::Types; my $mimetypes = MIME::Types->new; my MIME::Type $plaintext = $mimetypes->type('text/plain'); print $plaintext->mediaType; # text print $plaintext->subType; # plain
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How reliable is -T as a test for ASCII files?
by Anonymous Monk on May 13, 2004 at 23:21 UTC |