in reply to how to access hash key from the hash value when hash key is pointing to an array of hash values?

If you have a rather large taxon -> gene hash and you need to look up many genes, consider putting them in a database. SQLite seems very well suited for just such a thing. As a bonus you get your data to persist in a database, so you only have to do the transfer once and can do many look-ups without having to build-up your datastructure again and again.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: how to access hash key from the hash value when hash key is pointing to an array of hash values?