Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Nested (ARRAY|HASH)

by Zaxo (Archbishop)
on Oct 30, 2007 at 09:04 UTC ( #647988=note: print w/ replies, xml ) Need Help??

in reply to Nested (ARRAY|HASH)

Bart is completely correct, but there is an organizing principle he didn't mention. The values in a hash must be scalars. To make a hash of arrays, the array values should have square braces to produce a reference. To make a hash of hashes, curlies.

Each case is based on the top hash value being a scalar.

After Compline,

Comment on Re: Nested (ARRAY|HASH)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://647988]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2016-02-09 21:57 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (326 votes), past polls