Hi,
Its called autovivification
If you treat empty scalar as a hash reference, it becomes a hash reference
$ perl -e" $_->{yo}=1; $_->[2]=2; " Not an ARRAY reference at -e line 1.
perldata, perlref, Modern Perl page 60 , Data::Diver for convenience over autovivification
In reply to Re: Undef becomes hash reference somehow
by Anonymous Monk
in thread Undef becomes hash reference somehow
by ipherian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |