in reply to Re: Why is this not autovivifying?
in thread Why is this not autovivifying?

Not at all. An lvalue context is not required.

print $hash{foo}{bar}; # Autovivifies $hash{foo}

Replies are listed 'Best First'.
Re^3: Why is this not autovivifying?
by Fletch (Bishop) on Apr 03, 2007 at 13:21 UTC

    Oop, quite right. The presence of 'lvalue' in perlref was still in my mind. It's more like 'the use of an undef value (retrieved from somewhere which could be an lvalue; i.e. $a->{"foo"} will, undef->{"foo"} won't) to the left of a -> (implicit or explicit) attempting to dereference the value'.