You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit 10cf98ef5e03538976ec5fda11a69453e01d0467)
${^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.