Help for this page

Select Code to Download


  1. or download this
                do {
                    next LINE;
                    print RESULTS "$currentfile";
                } until eof();
    
  2. or download this
    my $matchFound = 0;
    while ($currentfile=<FILE>) {
    ...
      next unless $matchFound;
      print RESULTS $currentfile;
    }
    
  3. or download this
    my $currentfile = do { local $/ = undef; <FILE> };
    my @parts = split /(^\d{6}).{46}$search_date)/m, $s, 2;
    print RESULTS @parts[1,2] if $parts[1];