in reply to Re: Why no $@ after eval? Bug?
in thread Why no $@ after eval? Bug?

Someone cares to elaborate about eval inside of eval? for example, why doesn't this:

$ perl -e '$n = q/eval { die;}; print "1: $@"/; eval {$n}; print "2: $ +@"'
print out "1: Died at (eval 1) line 1." ?

Mainly because you left out "-w", which would have helped point you to the fact that you used eval {$n} instead of eval $n. Making that change gives you the output you'd expect.

Hugo