In the past I placed the Perl options in the "shebang line", like #!/usr/bin/perl -w
, but then I discovered that
- the options will be ignored when the program is run via
perl your_perl_file
- there is
use warnings;
that does not have the disadvantage listed above
Unfortunately there does not seem to exist an equivalent like use taint;
for -T
(taint mode).
Specifically when debugging such feature would be useful avoiding messages like
"-T" is on the #! line, it must also be used on the command line at ./server.pl line 1.
Did I miss something, or are there reasons why such does not exist (in Perl 5.18)?
perl your_file
. In particular, -w is processed.-T
is a bit of special case, because it needs to be detected and acted upon very early in the start up process. I am not aware of any workaround for this.