good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: use warnings and debug messagesby ww (Archbishop) |
on Mar 06, 2017 at 14:29 UTC ( [id://1183760]=note: print w/replies, xml ) | Need Help?? |
Isn't "turning them on" a fairly cheap price of doing business? Clearly, your problem case suggests that an option might be to "use warnings" after you've dealt with the more significant And one more thought:
If that seems too expensive, or the types of warnings are more diverse than you feel you can afford to deal with, perhaps its time to consider that the cost of selectively inserting "no warnings uninitialized" suggested by Vicar Eily is likely to be NO HIGHER and to pay the bonus of being clearer. Edit: Strike/corrected language in para 1; fixed markup on "code smell" and fixed "that" to "than" in final para.
In Section
Seekers of Perl Wisdom
|
|