Re: [perl #47233] Core dump caused by goto On Wed, Nov 07, 2007 at 07:27:41PM -0500, Jerry D. Hedden wrote:
> > > This is just about the SEGV. I don't know about the unitialised warning
> > > itself.
> >
> > Isn't this just because the second arg to isa() is undef???
> 
> I don't think so.  The following is doesn't produce any
> warnings, and does not seg fault:
> 
>     perl -e 'my $x; UNIVERSAL::isa(\\$x, undef)'
> 
> However, the following:
> 
>     perl -we 'my $x; UNIVERSAL::isa(\\$x, undef)'
> 
> produces:
> 
>     Use of uninitialized value in subroutine entry at -e line 1.

I don't follow you at all. Ignoring for the moment the segfault, which I
have already admitted to be a bug (;-), your two examples seem to show
that if you

a) enable warnings

and

b) pass an uninitialised value, 

you, err, get an uninitialised value warning.

What's buggy about that ????


-- 
"Strange women lying in ponds distributing swords is no basis for a system
of government. Supreme executive power derives from a mandate from the
masses, not from some farcical aquatic ceremony."
    -- Dennis, "Monty Python and the Holy Grail"


