Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Explaining Autovivicationby almut (Canon) |
on Jun 12, 2008 at 01:59 UTC ( [id://691575]=note: print w/replies, xml ) | Need Help?? |
Just another example of where Perl automagically creates data structures as needed:
which shows that $href has been autovivified to hold a reference to an (empty) hash, simply because you were using the scalar in a way (keys %$href) that would not have worked without such a data structure...
In Section
Seekers of Perl Wisdom
|
|