Hello monks. I come back to the well once again with a question. In some of our corporate code we use this..
$ENV{'PATH'} = '/bin:/usr/bin'; delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
Reason is for taint checking. If I were to follow best practices and localize this wouldn't that defeat the purpose?
I know that by not localizing $ENV that there exists a possibility of other things like modules in the script exhibiting unpredictable behavior.Any insight?
In reply to Localizing Magic Variable? Should I? by sherab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |