paperlined.org
dev > perl
document updated 13 years ago, on Jan 14, 2011
This page examines how Perl's -T operator works.

-T examines a file, and tries to guess if it's an ASCII text file. But what heuristic, exactly, does it use?

To see the implementation of it, search for "fttext" within pp_sys.c of the Perl source code.

Basically: