Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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??


in reply to How to correctly use a symbolic reference to automatically generate hash names?

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'}
  • Comment on Re: How to correctly use a symbolic reference to automatically generate hash names?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1077077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-19 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found