Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Answer: How do I make a hash of hashes?

( #6618=categorized answer: print w/ replies, xml ) Need Help??

Q&A > Data Structures > How do I make a hash of hashes? 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.)

Comment on Answer: How do I make a hash of hashes?
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2015-07-30 08:39 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 (270 votes), past polls