develooper Front page | perl.perl5.porters | Postings from February 2000

Re: [ID 20000207.003] close for piped open sets $! to the wrong value

From:
Mark-Jason Dominus
Date:
February 7, 2000 13:17
Subject:
Re: [ID 20000207.003] close for piped open sets $! to the wrong value
Message ID:
20000207211954.16100.qmail@plover.com

> mjd@plover.com writes:
> > Since /bin/false exited with non-zero status, $! should be set to 0.
> > However, it is instead set to the empty string.
> 
> Do you remember that $! is double-headed?  It has both numeric and
> string values...

Maybe the documentation is at fault, then.  I don't see why the
current behavior is not simply described by

	If the only problem was that the program exited non-zero $!
	will be set to the empty string.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About