There is a hash in my program.
The problem is I need to search in the hash, but there are some keys that are identical, but I need to get the associated value of all these keys.
when I do something like
$value = $hash{ "theKey" };
obviously I'm only getting the value associated to the first key called "theKey". How can I get the others? Some sort of loop?
thanks
The problem is I need to search in the hash, but there are some keys that are identical, but I need to get the associated value of all these keys.
when I do something like
$value = $hash{ "theKey" };
obviously I'm only getting the value associated to the first key called "theKey". How can I get the others? Some sort of loop?
thanks
Comment