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

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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2015-11-25 01:13 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (666 votes), past polls