develooper Front page | perl.perl5.porters | Postings from March 2008

Re: local $@ has an unwanted side effect

Thread Previous | Thread Next
Mark J. Reed
March 23, 2008 03:02
Re: local $@ has an unwanted side effect
Message ID:
On Sat, Mar 22, 2008 at 8:00 PM, Aristotle Pagaltzis <> wrote:
>  What does Perl 6 do in that respect? Maybe semantics could be
>  borrowed from there?

In which respect?

TTBOMK, both eval's role as pseudo-"try" and the $@ variable are gone
in Perl6, which has a real "try" instead.  If the eval'ed code fails,
the eval itself just fails right along with it; so there's no need for
a split along the lines of $! vs $@.

Mark J. Reed <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About