in reply to array refs, hashes, and confusion

Actually, what's being pushed into the anonymous array is a reference to an anonymous hash containing those keys and values. You can get the value of $val with something like $array->[0]{key}.

HTH