Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5. Hashes > Retrieving from a Hash in Insertion Order

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