I see two options:
This way you would keep the data closer together.push (@{$hash{$word2}{'times'}},$word1); push (@{$hash{$word2}{'locations'}},$word3);
EDIT: Changed %population to %location (thanks kcott)
In reply to Re: how to iterate over multiple hashes with same key value
by hdb
in thread how to iterate over multiple hashes with same key value
by sunil9009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |