in reply to Re^2: how to access hash key from the hash value when hash key is pointing to an array of hash values?
in thread how to access hash key from the hash value when hash key is pointing to an array of hash values?
One minor niggle, your results wording, "first found", implies some ordering in the hash which isn't there. Add some more data to the hash and you may well get a different "first found". If perhaps the taxon codes are all numeric and you said
... sort { $a <=> $b } keys %gg;
then the labelling would be more meaningful.
I hope this is of interest.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to access hash key from the hash value when hash key is pointing to an array of hash values?
by ikegami (Patriarch) on Jan 29, 2010 at 23:36 UTC | |
|
Re^4: how to access hash key from the hash value when hash key is pointing to an array of hash values?
by AnomalousMonk (Archbishop) on Jan 29, 2010 at 23:38 UTC |