in reply to
autovivified hash key with foreach $x ( @{$h{a}} ) {}
Because the second is lvalue context, where autoviv happens.
Comment on
Re: autovivified hash key with foreach $x ( @{$h{a}} ) {}
Replies are listed 'Best First'.
Re^2: autovivified hash key with foreach $x ( @{$h{a}} ) {}
by
Danny
(Chaplain)
on May 17, 2024 at 17:46 UTC
I see. Thanks.
[reply]
In Section
Seekers of Perl Wisdom