Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
how to access hash key from the hash value when hash key is pointing to an array of hash values?by BhariD (Sexton) |
on Jan 29, 2010 at 20:58 UTC ( [id://820397]=perlquestion: print w/replies, xml ) | Need Help?? |
BhariD has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash, where hash keys (taxon) point to an array of values (genes). For example:
I want to retrieve the taxon for a given gene. For example, when I search based on NP_012 gene, I want to get the taxon 1567 and so on. Is there a way I can do this? Thanks!
Back to
Seekers of Perl Wisdom
|
|