develooper Front page | perl.perl5.porters | Postings from June 2014

Doco-bug for -T and -B?

Thread Next
David Cantrell
June 26, 2014 10:52
Doco-bug for -T and -B?
Message ID:
For the unicodely challenged (which may include my MUA!) the funny
foreign characters in this are apparently Chinese for "text".

$ cat foo
$ perl-5.20.0/bin/perl -E 'say -T "foo"'
$ perl-5.20.0/bin/perl -E 'say -B "foo"'

That's nice, it says that it's text, and not binary. However, the
documentation says:

      -T  File is an ASCII text file (heuristic guess).
      -B  File is a "binary" file (opposite of -T).

So either the doco is wrong and needs updating to drop the 'ASCII', or
it's a rubbish heuristic!

And FWIW it behaves like this at least as far back as 5.8.8.

David Cantrell | Enforcer, South London Linguistic Massive

    Seven o'clock in the morning is something that
    happens to those less fortunate than me

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About