|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Why no $@ after eval? Bug?by Chady (Priest) |
| on May 07, 2004 at 09:07 UTC ( #351400=note: print w/ replies, xml ) | Need Help?? |
|
They do not produce different results. Look:
In the first attempt, you have your code in an eval block, so the error is stored in $@. Now, why isn't it getting printed? Someone cares to elaborate about eval inside of eval? for example, why doesn't this: print out "1: Died at (eval 1) line 1." ? He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life. Chady | http://chady.net/
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||