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

Re: local $@ has an unwanted side effect

Thread Previous | Thread Next
From:
David Nicol
Date:
March 21, 2008 14:20
Subject:
Re: local $@ has an unwanted side effect
Message ID:
934f64a20803211420n40ce6eb8x57aa4cf02e5338cd@mail.gmail.com
On Fri, Mar 21, 2008 at 12:59 PM, Mark Mielke <mark@mark.mielke.cc> wrote:
>  seem to be something that absolutely must change), I believe the true
>  problem here is that die seems to be pass by reference, and that local
>  is restoring the value to undef (or whatever it was before) before $@ is
>  made available to the caller.

no that's not it but it is a red herring -- I would like to revise the proposed
addition of this issue to the eval documentation to but double-quotes
around the $@ in the commented-out line in the example code.


-- 
... but world war IV will be fought with rocks

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About