I think you'll have to settle for a selectall_hashref(), which is a hash of hashes. You could force it into an array of hashes, but it would be an expense with no gain. If you just want to foreach through it, choose values( %{ $retval } ) and be happy.