in reply to Re^2: HoH question
in thread HoH question

oops, didn't notice. Change
$hash{$array[0]} = { $array[1] => $array[2] };
to
$hash{$array[0]}{$array[1]} = $array[2];
which is a shortcut for
$hash{$array[0]} = {} if not defined $hash{$array[0]}; $hash{$array[0]}{$array[1]} = $array[2];