Help for this page

Select Code to Download


  1. or download this
    # assumes that duplicates in first file should be ignored.
    my %wanted;
    ...
      chomp $line);
      $wanted{$line}++;
    }
    
  2. or download this
    my $foo = (split /|/, $line)[1];
    
  3. or download this
    print OUT $line if $wanted{$foo};