I would like to know how to push a hash to use it later on (in another sub-routine). I know the push function only applies for arrays but is there a similar function for hashes ?
Here's the current coding I have.
Here's the current coding I have.
Code:
for (keys %members) {
if ($input{'pv'} eq $members{$_}{'region'}) {
[b]print_members($_);[/b]
++$NumberOfMembers;
}
}
[code]
Instead of printing the "results" right away ([COLOR=red][b]print_members($_)[/b][/color]), I would like to push the new hash so I can use it later on in another sub-routine.
Thank you in advance.
Your help is really appreciated.