Use binmode on your file handles so you'll only get the "\r" characters when you want to write them them. Also, for trimming the end of lines, I typically use s/\s+$//, because it'll remove *all* of the junk at the end that I don't care about.
...roboticus
In reply to Re: ^M chars in output file
by roboticus
in thread ^M chars in output file
by locust
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |