I have the folowing for renumbering lines in a file, but the
first line contains a % and the last line contains a %. How
would I have the folowing script ignore this character?
$file = "myfile.txt";
open (FILE,"$file") || die $!;
while (<FILE>) {
s/^(N\d+ )?/N$. /;
}
continue {
print;
}