develooper Front page | perl.perl5.porters | Postings from September 2001

PerlIO bug with duping filehandles

Thread Next
From:
Michael G Schwern
Date:
September 26, 2001 07:15
Subject:
PerlIO bug with duping filehandles
Message ID:
20010926101542.G5307@blackrider
Robin caught this.

   open(FOO, ">", \$foo) or die $!;
   open(BAR, ">&FOO")    or die $!;

In 5.6.1 this runs quietly.  In bleadperl w/perlio this dies with 
"Bad file descriptor at - line 2."

Looks like that's the source of the O.pm troubles.


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
Let's leave my ass out of this, shall we?

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