The stupid question is the question not asked | |
PerlMonks |
Re^2: Passing variable to if statementby Anonymous Monk |
on Jul 16, 2014 at 20:55 UTC ( [id://1093940]=note: print w/replies, xml ) | Need Help?? |
I think OP's original code is fine in this regard. I'd say autodie is helpful for those who know all the things that it does, or e.g. for dropping into legacy scripts that don't do enough error checking. But, as I've discovered, it can also cause problems when it's used, and its bug trackers (1, 2) show I'm not the only one. Don't get me wrong, it's a good recommendation, I just disagree that it's a "best practice" - it's just MTOWTDI.
In Section
Seekers of Perl Wisdom
|
|