On Feb 19, 2005, at 1:51 AM, wren argetlahm wrote:

Which reminds me... I've been using the #!/usr/bin/env perl shebang for easier distribution, but env doesn't like switches. Is there a way to set taint mode via `use` or the like (ala use warnings; for -w).

No. By definition, any switch in the script itself would be too late to set taint mode. Even a '-T' in the shebang line doesn't work if the script is invoked as "perl foo.pl" instead of "./foo.pl". In that case it'll just die with the error 'Too late for "-T" option'. See 'man perldiag'.


 -Ken



Reply via email to