You are viewing the version of this documentation from Perl 5.39.9. This is a development version of Perl.
${^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.