Help for this page

Select Code to Download


  1. or download this
    my %hits;
    while( <> ) {
    ...
      $hits{ $key }++;
    }
    my @distinct = keys %hits;
    
  2. or download this
    my @hits;
    my %seen;
    ...
      next if $seen{ $key }++;
      push @hits, $key;
    }