while () { my ($one, $two) = split; push @{$seen{$one}}, $two; }