Help for this page

Select Code to Download


  1. or download this
    for( my $i = 0; $i <= $#lines; $i++ ) {
        if ( $lines[$i] =~ s/^SY(?= )/CN/ ) {
    ...
            }
         }
    }
    
  2. or download this
    my $previous_line_matched = 0;
    foreach my $line ( @lines ) {
    ...
        }
        $previous_line_matched = 0;
    }