in reply to Bug in perl compiler?

Hmmm, undef is a function too, so I guess it's parsed as:

$x = { a => undef('b') => 'x', };

Which means you're asking Perl to undefine a string literal - still shouldn't segfault.

Replies are listed 'Best First'.
Re: Re: Bug in perl compiler?
by djantzen (Priest) on Dec 11, 2002 at 10:41 UTC

    The error arises on 5.6.1, and running it through B::Deparse gives further wierdness:

    Can't locate object method "pp_anonhash" via package "B::Deparse" (per +haps you forgot to load "B::Deparse"?) at /usr/local/lib/perl5/5.6.1/ +sun4-solaris/B/Deparse.pm line 410. CHECK failed--call queue aborted. Segmentation Fault