in reply to Data Structure confusion...

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

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.