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

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

From:
Ilya Zakharevich
Date:
February 7, 2000 13:25
Subject:
Re: [ID 20000207.003] close for piped open sets $! to the wrong value
Message ID:
20000207162516.A6952@monk.mps.ohio-state.edu
On Mon, Feb 07, 2000 at 04:19:54PM -0500, Mark-Jason Dominus wrote:
> > 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.

Because the value of $! *is not a string*.

Ilya



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