develooper Front page | perl.perl5.porters | Postings from December 2009

Re: [PATCH] t/io/errno.t + Difference between stdio and perlio?

Thread Previous | Thread Next
From:
Eric Brine
Date:
December 8, 2009 09:37
Subject:
Re: [PATCH] t/io/errno.t + Difference between stdio and perlio?
Message ID:
f86994700912080937j2d7a29e6we50c1f72faed6f2e@mail.gmail.com
On Sat, Aug 1, 2009 at 3:20 PM, Bram <p5p@perl.wizbit.be> wrote:

> Either way, I belive the test should be updated to:
> my $test_prog = 'undef $!;while(<>){print}; print $!';
>

No, that's wrong. $! is meanlingless if an error hasn't been reported, and
ARGV doesn't report errors since it handles them itself using warnings.

Please read blead's perlfunc, particularly this commit:
http://perl5.git.perl.org/perl.git/commitdiff/0f03d336cfac20781d0a45d83906fa559a5ecf17?hp=57ad57e0c240e6f9b1b9e73de8068a9bc11b5466

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