develooper Front page | perl.perl5.porters | Postings from May 2012

Re: [perl #3221] "Filehandle Foo::BAR opened only for output"inconsistency

Thread Previous
From:
Nicholas Clark
Date:
May 8, 2012 06:29
Subject:
Re: [perl #3221] "Filehandle Foo::BAR opened only for output"inconsistency
Message ID:
20120508132930.GJ9069@plum.flirble.org
On Fri, May 04, 2012 at 12:11:36PM -0700, Brian Fraser via RT wrote:
> On Tue Nov 11 04:34:48 2008, reneeb wrote:
> > On Di. 11. Nov. 2008, 04:03:48, reneeb wrote:
> > > For Perl 5.8.9 RC1
> > > the error (message) disappeared.

I think the significant commit is this one

commit 97828cef4d4cd22b548b8ec430d2e0e28ea8ae8c
Author: Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
Date:   Wed Sep 25 23:58:12 2002 +0200

    Re: perlio bug?
    Message-Id: <20020925215812.3b7adb0d.rgarciasuarez@free.fr>
    
    p4raw-id: //depot/perl@17954


which changes from this:

$ ./miniperl -we 'close STDOUT; open FOO, "< /dev/null" or die $!; <FOO>; <FOO>'
Filehandle STDOUT opened only for input at -e line 1.

to this:

$ ./miniperl -we 'close STDOUT; open FOO, "< /dev/null" or die $!; <FOO>; <FOO>'
Filehandle STDOUT reopened as FOO only for input at -e line 1.


and was merged to maint-5.8 in time for 5.8.1 (hence why 5.8.9 RC1 doesn't
show it)

> So with the "new" error message about reopening STD{whatever}, can this
> ticket be closed? Or am I missing something?

Yes, I think that the underlying problem of the original report is now
resolved.

Nicholas Clark

Thread Previous


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