http://www.perlmonks.org?node_id=752351


in reply to To taint or not to taint?

I like to write code that works under taint because it increases the number of contexts where my code can be used.

You may already be aware of this, but one can significantly reduce the number of pointless taint complaints simply by setting $ENV{PATH}=''; $ENV{CDPATH}=''; or other known (untainted/detainted) value. This applies to a few other variables, like IFS, as well. See perlsec for details.

Best, beth