in reply to Unable to remove ^M in the file
$lines[$i] =~ s/\r//g;
but you will have to add the "\n" when writing the line out.local $/ = "\r\n"; chomp @lines;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |