Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Nested (ARRAY|HASH)

by Zaxo (Archbishop)
on Oct 30, 2007 at 09:04 UTC ( [id://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,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-11-11 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    chatterbot is...






    Results (39 votes). Check out past polls.