The stupid question is the question not asked | |
PerlMonks |
Re: Checking the success of evalby satchboost (Scribe) |
on Apr 21, 2001 at 00:16 UTC ( [id://74306]=note: print w/replies, xml ) | Need Help?? |
I hate to say it, but ... Duh! :) $@ was provided for a reson. I personally don't like to assume that a "standard" return value will work if "The Powers That Be"(tm) have provided another method of checking success. Things like eval and $@ are a perfect example.
It's good of you to post it, though. I never knew about eval returning undef if it failed. :)
In Section
Meditations
|
|