in reply to Re: Passing variable to if statement
in thread Passing variable to if statement
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing variable to if statement
by Anonymous Monk on Jul 16, 2014 at 21:05 UTC | |
by PerlSufi (Friar) on Jul 16, 2014 at 21:45 UTC |