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

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

Thread Next
From:
James E Keenan via RT
Date:
April 21, 2012 14:18
Subject:
[perl #4350] do and eval sometimes don't clear $@
Message ID:
rt-3.6.HEAD-4610-1335043119-1833.4350-15-0@perl.org
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?

Thank you very much.
Jim Keenan




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

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