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

[perl #4350] do and eval sometimes don't clear $@

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
June 20, 2012 17:06
Subject:
[perl #4350] do and eval sometimes don't clear $@
Message ID:
rt-3.6.HEAD-8805-1340237200-442.4350-15-0@perl.org
On Sat Apr 21 14:18:39 2012, jkeenan wrote:
> On Tue Jul 15 23:51:58 2003, schwern wrote:
> > 
> > The second case, do EXPR failing to load a file not clearing $@, has
> > not been fixed.  It feels like a bug and not merely a bad analogy.
> 
> Here's the second case as a one-liner:
> 
> #####
> 
> perl -e 'eval { die "should not see this\n" };do "no such file";warn
> "$@" if $@;'
> should not see this
> 
> #####
> 
> Is there anyone who could take this older ticket on?

This has been fixed by the patch Eric Brine submitted to ticket #113730
(which I will merge with this one shortly), which was applied as
a3ff80c12c1.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=4350

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