in reply to Modifying order of a hash

Beware, order of items in a hash may change. If you want to access them in some order, you have to sort them or access them by name.

But what you have here in your examples are not hashes, these are array references. Don't get confused by the =>, that's just a fancy way of writing comma.