Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007876]
help
Chatterbox?
[Corion]: So I guess I will simply implement the linear scan first and wait with more fancy stuff until it becomes a problem
[karlgoethebier]: Lady_Aleena: ++ for "The Man Crusher Everyday"
[karlgoethebier]: this mad my day
[karlgoethebier]: no typo
[marioroy]: At the Fransiscan monastery, got stuck up high in a tree from pruning and the chainsaw with large branch fell and broke the latter, but not me fortunately. Was stuck there for a while until a firetruck came by.
[Corion]: marioroy: So you live dangerously ...
[Lady_Aleena]: s/latter/ladder/; # ? marioroy
[karlgoethebier]: marioroy: Praise the Lord
[marioroy]: Well, that's why there must be angels around, invisible or not.
[marioroy]: Lady_Aleena yes, ladder.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2017-05-29 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?