Help for this page

Select Code to Download


  1. or download this
    my @pattern = <STDIN>;             # slurp patterns
    chomp @pattern;                    # remove end-of-line
    ...
        print if /$pattern/;
    }
    close F2;
    
  2. or download this
    $ ./myscript.pl <file1