Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: variable as hash name

by Anonymous Monk
on Dec 08, 2012 at 09:53 UTC ( #1007876=note: print w/ replies, xml ) Need Help??


in reply to Re^4: variable as hash name
in thread variable as hash name

Because these 'groups' names ( that I want to use as hash names ) will also come from a external file.

Exactly, they can all go into a hash, you can have

$hashref->{group1}{dogs}{fido}{breed}='doberman'; $hashref->{group1}{dogs}{fido}{age}=12; $hashref->{group11}{humans}{larry}{age}= undef; ...
or anything -- should really read varvarname


Comment on Re^5: variable as hash name
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-03 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls