The perlsec section about Taint mode (https://perldoc.perl.org/perlsec#Taint-mode) begins with a statement
"By default, Perl automatically enables a set of special security checks, called taint mode".
So the question arises:
How to completely turn off these default-enabled "special security checks" which are enabled even without the -T option?
Or: How to completely disable the said "taint mode"?
There are several legit reasons to do so:
- To find out quickly whether these "security checks" are what causes your script to not work.
- When not needed at all in the given scenario.
- To make Perl more efficient, runtime-wise and energy-wise.
These checks adds a runtime overhead of ~10% (see https://blogs.perl.org/users/neilb/2021/08/making-taint-support-optional-in-perl.html)
Thus, in many scenarios this checking is not only utterly unnecessary, but actually detrimental.
In reply to How to disable taint checking by Perl? by dissident
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |