in reply to Re^2: Creating a hash from arrays
in thread Creating a hash from arrays
my %personInfo = (); my %stateInfo = (); while (###) # loop through data { $personInfo{$name} = $state; push @{$stateInfo{$state}}, $name; }
Now you can look up in either direction.
|
|---|