in reply to Re: Re: seeking eval failures
in thread seeking eval failures

Yes, sorry. Seems as if you guys were right. But why exactly does the eval have to fail? Where could you detect the difference? I mean, after all the return value of the outer eval is the same as the one of the inner eval and $@ is empty, as specified.

Replies are listed 'Best First'.
Re: Re: Re: Re: seeking eval failures
by Anonymous Monk on Aug 18, 2003 at 09:59 UTC
    You are responsible for propagating $@ to the outer most eval.
    eval { die "borg"; }; warn "whoops $@" if $@; eval { eval { die "borg"; }; die $@ if $@; # essentially "rethrow" an "exception" if it occured }; warn "whoops $@" if $@; __END__ whoops borg at - line 2. whoops borg at - line 8.