I have a script that has -T on the hashbang line. I normally call it using the Unix method ./script.pl (having chmod 7**'ed it). No problem.
The same script generates a taint error at line 1 when executed using "perl script.pl". This stops the program before it gets started. Everything goes back to normal when using "perl -T script.pl" to execute. But this is less than ideal. I don't want everyone who might use the script to have to learn to use the -T switch when executing.
Is there a way to ensure taint checking without having to explicitly explain this to potential users?