Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How to correctly use a symbolic reference to automatically generate hash names?by Anonymous Monk |
on Mar 05, 2014 at 13:21 UTC ( [id://1077077]=note: print w/replies, xml ) | Need Help?? |
It is almost always a bad idea to use phony-names in this way, especially when Perl's "auto-vivification" feature (Google it ...) makes it so darn easy to build "hashes of arrays of arrays of hashes of ..." Surely you want something like: $myhash->{'wow'}->[3]->{'bygolly'}
In Section
Seekers of Perl Wisdom
|
|