Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: How do I make a hash of hashes?

by chromatic (Archbishop)
on Apr 01, 2000 at 01:13 UTC ( #6618=categorized answer: print w/replies, xml ) Need Help??

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

You can also add a hash by doing something like this:
$hash{toes} = { biggest => 'hairy troll', smallest => 'toddler', };
(Note that the {} make a reference to an anonymous hash. See perlman:perldsc for more gritty details.)

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 scrutinizing the Monastery: (6)
As of 2016-12-04 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (70 votes). Check out past polls.