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

[perl #81586] Carp::confess looses $! on Windows

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
August 27, 2013 06:17
Subject:
[perl #81586] Carp::confess looses $! on Windows
Message ID:
rt-3.6.HEAD-1873-1377584257-1448.81586-15-0@perl.org
On Wed Jan 12 04:29:05 2011, kmxx wrote:
> > Output when run on Strawberry Perl 5.12.1.0 (x64)   (and other
> > versions of Windows)
> > 
> >   --> without \n
> >   oeps at y line 10
> >       eval {...} called at y line 10
> >   : No such process (rc=3)
> > 
> >   --> with \n
> >   oeps
> >    at y line 12
> >       eval {...} called at y line 12
> >   :  (rc=0)
> > 
> 
> The same output with all:
> - strawberry perl 5.10.1 / 5.12.1
> - active perl 5.10.1 / 5.12.1

5.18:

C:\Users\tony\play>perl -E "$SIG{__DIE__} = sub { say qq(error: $!) };
use Carp
'confess'; $!=3; confess qq'foo\n'"
error:
foo
 at -e line 1.

blead:

C:\Users\tony\play>\testperlx\bin\perl -E "$SIG{__DIE__} = sub { say
qq(error: $
!) }; use Carp 'confess'; $!=3; confess qq'foo\n'"
error: No such process
foo
 at -e line 1.

Nothing leaps out at me as the cause of the fix though.

Tony

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

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