Help for this page

Select Code to Download


  1. or download this
    foreach(@inputs) {
        local *FILE;
    ...
        push(@regex,$regex);
        push(@filehandles,$ofh);
        }
    
  2. or download this
    my $i = 0;
    while(<>) {
    ...
      }
      $i=0;
    }
    
  3. or download this
    #!perl
    
    ...
            print $line if $line =~ $_->{regex};
            }
    }