use warnings and -w do very similar things. use warnings was introduced in Perl 5.6 and is definitely the way to go. The only reason to stick with -w is if your scripts might be run using an older version of Perl.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: use warnings vs. perl -w
by davorg
in thread use warnings vs. perl -w
by dmckee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |