Recipe 5.7. Retrieving from a Hash in Insertion Order
5.7.1. Problem
The keys
and each functions traverse the hash elements in a
strange order, and you want them in the order in which you inserted
them.
5.7.2. Solution
Use the
Tie::IxHash module.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial