![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re^2: wishlist: die-on-failure for built-insby dpuu (Chaplain) |
on Apr 19, 2005 at 18:22 UTC ( #449372=note: print w/replies, xml ) | Need Help?? |
Second: if what you wish were possible (and easy), that wouldn't work, you'd wish your wish back. Sometimes you want it to die, sometimes - do smth. else.
I often code things as: Now you have a choice. If you check the return value (or assign it to undef), then it won't die. If you're lazy and there's an error, then it dies.
--Dave Opinions my own; statements of fact may be in error.
In Section
Seekers of Perl Wisdom
|
|