develooper Front page | perl.perl5.porters | Postings from November 2006

Re: Trouble with PERLIO_INIT/PERLIO_TERM changes

Thread Previous | Thread Next
From:
demerphq
Date:
November 29, 2006 16:15
Subject:
Re: Trouble with PERLIO_INIT/PERLIO_TERM changes
Message ID:
9b18b3110611291614l48b86f0br889fafff06deda50@mail.gmail.com
On 11/30/06, Jarkko Hietaniemi <jhi@iki.fi> wrote:
> >
> > Attached is the output of running "perl -Mblib test.pl" in my Foo module
> > with PERLIO_DEBUG pointing to a file.
> >
> > This time the test program dies with "refcnt_dec: fd 4: 0 <= 0"
> > (presumably debug.txt itself is now fd 3).
> >
> > I'm not sure that it helps me very much.
> >
> > I'm leaving now, but I'll have a closer look tomorrow (unless you've
> > sorted it all out by then ;-)
>
> You left out the test.pl.

I think he means the one that is bundled with his test distro in his
earlier reply to me.

Which reads:

use strict;
use warnings;

use Foo;

local(*FH);
fopen(*FH, 'MANIFEST', 'r');
close(FH);

print "OK\n";

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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