Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    my @avoid= map qr/\Q$_\E/i, qw(leroy brown);
    ...
    while( $line= <IN> ) {
        print $line   unless  grep $line =~ $_, @avoid;
    }
    
  2. or download this
    while( $line= <IN> ) {
        for(  @avoid  ) {
            if(  $line =~ $_  ) {
    ...
            }
        }
    }
    
  3. or download this
    while( $line= <IN> ) {
        for(  @avoid  ) {
            if(  $line =~ $_  ) {
    ...
        }
        print $line;
    }