Help for this page

Select Code to Download


  1. or download this
      LINE: for each line of the file {
        PATTERN: for each exclude string {
    ...
            skip to the next LINE
        }
      }
    
  2. or download this
      LINE: for each line of the file {
        PATTERN: for each exclude string {
    ...
        }
        we weren't excluded by any pattern, so print the line
      }
    
  3. or download this
      LINE: foreach my $line (@file1only) {
        foreach my $exclude (@strings) {
    ...
        # we weren't excluded by any of the patterns
        print OUT $line;
      }