http://www.perlmonks.org?node_id=968105


in reply to Retrieving the hash key-value in the order of their insertion without Tie::IxHash

Some ways:
  1. Use a tied hash, and do something similar to Tie::IxHash;
  2. Use an additional data structure, and consult this one when retrieving keys. Don't forget to update this datastructure each time you modify your hash.
  3. Don't use hashes with more than one key.
  • Comment on Re: Retrieving the hash key-value in the order of their insertion without Tie::IxHash