develooper Front page | perl.perl5.porters | Postings from July 2013

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
From:
David Nicol
Date:
July 25, 2013 17:45
Subject:
Re: Try/Catch Exception Objects: Possible?
Message ID:
CAFwScO90TStycdbp0fv0ubWyLQx6fOp2EzWVtRFQUVCJEmpnwg@mail.gmail.com
On Thu, Jul 25, 2013 at 8:42 AM, David Golden <xdg@xdg.me> wrote:
> On Thu, Jul 25, 2013 at 7:03 AM, David E. Wheeler <david@justatheory.com> wrote:
>>
>> Is the idea, then, that we would have both $@ and @@, the former the exception object, the latter the stack?
>
> Reserving judgment on @@, specifically, yes.
>
> $@ would be $@[0] -- the most recently thrown exception.

no. because eval clears $@ and doesn't shift @@.

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