Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: multiple values for one key in hashby moritz (Cardinal) |
on May 12, 2008 at 22:12 UTC ( [id://686160]=note: print w/replies, xml ) | Need Help?? |
Note: you have to create the anonymous reference -- you can't just push a value if the key doesn't exist. In perl you can ;-)
This nice feature is called "autovivification" and is quite useful most of the time.
In Section
Seekers of Perl Wisdom
|
|