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

Re: Fatal/autodie exception hierarchies for Perl 5

Thread Previous | Thread Next
From:
Dr.Ruud
Date:
June 9, 2008 01:13
Subject:
Re: Fatal/autodie exception hierarchies for Perl 5
Message ID:
20080609081351.25993.qmail@lists.develooper.com
"Joshua ben Jore" schreef:

> Semi-recently at work I found that a few buggy exception objects in
> the global $@ were clearing themselves out of $@ as a side effect of
> examining them for truth.

Oops, I'd better change my 

    push @errors, $@ if $@;

to something like 

    {my $e; push @errors, $e if $e = $@} 

then. 

-- 
Affijn, Ruud

"Gewoon is een tijger."

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