Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Answer: How do I make a hash of hashes?

by Doraemon (Beadle)
on May 13, 2004 at 08:10 UTC ( #353006=categorized answer: print w/replies, xml ) Need Help??

Q&A > Data Structures > How do I make a hash of hashes? - Answer contributed by Doraemon

This might interest you:
$other_hash{key} = ''; $hash{other} = \%other_hash; $hash{other}->{key} = '1'; # ok $tmp = $hash{other}; $$tmp{key} = '2'; # use it like this # $$hash{other}{key} = '2'; # but not like this ${$hash{other}}{key} = '3'; # this is ok $hash{other}{key} = '3'; # this too, -> unneeded after { +}

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-12-11 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (310 votes). Check out past polls.

    Notices?