Help for this page

Select Code to Download


  1. or download this
    while (<DATA>) { 
            my ($one, $two) = split; 
            $seen{$one} = [$two, exists $seen{$one} ? @{$seen{$one}} : () 
    +]; 
    }
    
  2. or download this
    while (<DATA>) {
      my ($one, $two) = split;
      push @{$seen{$one}}, $two;
    }