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

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

Thread Previous
Dave Mitchell
May 3, 2004 14:31
Re: [perl #29102] Crash on assignment to lexical filehandle
Message ID:
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.


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
	    - Nicholas Clark, based on an original by Simon Cozens.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About