So why would someone try to represent a hash with an array of two element hashes each with the keys "key" and "value"?
"Represent a hash" makes no sense. I presume you mean "implement an associative array".
Someone would do that if they wanted to preserve the order of the tuples. We've covered this multiple times already.
| [reply] |
| [reply] [d/l] [select] |
It's not a question of efficiency, it's a question of actually working. $order=[somekey1,somekey2,...]; and {somekey1=>somevalue1,...} doesn't support more than one value with the same key.
| [reply] [d/l] [select] |