Do you know where your variables are? | |
PerlMonks |
Re: Re: Error Handling Misconceptionby bobn (Chaplain) |
on Sep 06, 2003 at 14:52 UTC ( [id://289468]=note: print w/replies, xml ) | Need Help?? |
Why did you expect it to do anything else? Your inner eval caught the first exception, but instead of propagating it, you discarded it and printed "hi". The outer eval saw no error, becauase the iner eval ignored it. This program behaved exactly as expected. If you wanted the this to do something else, the followingin (untested) would have been better: --Bob Niederman, http://bob-n.com All code given here is UNTESTED unless otherwise stated.
In Section
Seekers of Perl Wisdom
|
|