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

Re: [perl #29102] Crash on assignment to lexical filehandle

Thread Previous
From:
Dave Mitchell
Date:
May 3, 2004 14:31
Subject:
Re: [perl #29102] Crash on assignment to lexical filehandle
Message ID:
20040503213525.GJ1895@iabyn.com
On Fri, Apr 23, 2004 at 01:21:51PM -0000, Gisle Aas wrote:
> The following program segfaults:
> 
>     foo();
>     foo();
> 
>     sub foo {
>         open(my $fh, ">xxx") || die;
>         $fh = "foo";
>     }

Fixed by change #22746, and test added by change #22778.

Dave.

-- 
The perl5 internals are a complete mess. It's like Jenga - to get the
perl5 tower taller and do something new you select a block somewhere in
the middle, with trepidation pull it out slowly, and then carefully
balance it somewhere new, hoping the whole edifice won't collapse as a
result.
	    - Nicholas Clark, based on an original by Simon Cozens.

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