Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by JavaFan (Canon)
on Apr 30, 2012 at 15:58 UTC ( #968105=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968105]
help
Chatterbox?
[msh210]: hm, okay, I'll try, thanks
[shmem]: ...not as an attachment, it's probably better to c&p that into the mail body

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2017-04-24 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (439 votes). Check out past polls.