in reply to Re: Re: list vs array context: odd error message...
in thread list vs array context: odd error message...

It's not identical if there's already something in the hash element. It reuses any existing hashref pointer, and may even fail if there's an arrayref or something else there instead.

That's why I prefer avoiding the @{$foo[bar]} = ... forms, opting instead for the $foo[bar] = [...] forms as being much safer.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Re: list vs array context: odd error message...
by Hot Pastrami (Monk) on Dec 16, 2000 at 04:52 UTC
    Oh yes, I see. Thanks.

    Hot Pastrami