Jay Savage wrote:
Dr.Ruud:

Because $@ is a global, it is best practice to act on
the return value of eval itself:

[snip]

$@ is also *guaranteed*--in the words of perlfunc--to be set
correctly. I believe that historically this may not have been the
case: $@ may have only been set on failure and not flushed on success,
but in recent Perls it should be reliable.

And then it isn't. Try a die in a DESTROY handler for example.

See also discussions about @@ on p5p.

--
Ruud

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to