next unless $. == $array[$i++]; print OUT $_;