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.