R
Rohan Romanus Almeida
Hi,
Wanted a little help regarding "use warnings".
AFAIK, there are the following choices:
1) #!/usr/bin/perl -w
In this mode, the perl interpreter is started with "-w",
as a command line option.
But if the user knows the absolute path of the perl script,
then he can execute,
$ perl /path/to/perlscript
So, does he bypass the "-w" option?
2) #!/usr/bin/perl
use warnings;
I think this is the bestest choice!
I normally begin my perl scripts with the following 2 lines:
#!/usr/bin/perl
use strict; use warnings;
Is this safe?
What do most of you people use?
Thankz.
Wanted a little help regarding "use warnings".
AFAIK, there are the following choices:
1) #!/usr/bin/perl -w
In this mode, the perl interpreter is started with "-w",
as a command line option.
But if the user knows the absolute path of the perl script,
then he can execute,
$ perl /path/to/perlscript
So, does he bypass the "-w" option?
2) #!/usr/bin/perl
use warnings;
I think this is the bestest choice!
I normally begin my perl scripts with the following 2 lines:
#!/usr/bin/perl
use strict; use warnings;
Is this safe?
What do most of you people use?
Thankz.