You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit 2001bed1f780961d0beff63321f054cd8681ec92)
${^TAINT}

Reflects if taint mode is on or off. 1 for on (the program was run with -T), 0 for off, -1 when only taint warnings are enabled (i.e. with -t or -TU).

Note: if your perl was built without taint support (see perlsec), then ${^TAINT} will always be 0, even if the program was run with -T).

This variable is read-only.

This variable was added in Perl v5.8.0.