|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Turn off warnings, diagnostics?by kcott (Parson) |
| on Nov 07, 2012 at 18:35 UTC ( #1002714=note: print w/ replies, xml ) | Need Help?? |
|
"Do we turn both "use warnings" and "use diagnostics" OFF (by commenting them out) when the scripts go live?" I would leave warnings for all environments (development, testing, production, etc.) but only use diagnostics in development (and only then if it's useful - it's certainly not required). You can always retrieve the additional, verbose diagnostics text by searching perldiag or by running the splain utility. While it's probably useful to see multiple lines of the form
it's unlikely that you'll want see the following lengthy explanation of the warning more than once:
-- Ken
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||