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

Re: Data Structure confusion...

by talexb (Chancellor)
on Apr 26, 2016 at 15:47 UTC ( [id://1161565]=note: print w/replies, xml ) Need Help??


in reply to Data Structure confusion...

Here's a quick primer on reading Perl data structures:

  • 'something' => (any data structure) - a hash key/value pair.
  • [ (a list of things) ] - an arrayref,
  • { key => value, .. } - a hashref
  • ( key => value, .. ) - a hash
So, using those rules, your 'hostattributes' key has a value of an arrayref that contains two elements, each of which is a hashref, each of which contains five key/value pairs. Because this is a hash, the keys can appear in any order.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found