Keep It Simple, Stupid | |
PerlMonks |
Re: warnings and strict -- The 2 Best Ways You Can Improve Your Programmingby itub (Priest) |
on Oct 04, 2005 at 18:54 UTC ( [id://497358]=note: print w/replies, xml ) | Need Help?? |
If you use warnings, it's usually not a good idea to use -w. When you use the older -w flag, you turn warnings on globally, even in modules you use that were not designed to run with warnings on, so you may get false positives. The warnings pragma gives you finer control, because you can turn the warnings on only where you want, and you can also control the types of warnings you get.
See What's_wrong_with_-w_and_$^W in perllexwarn.
In Section
Meditations
|
|