I am writing a text file from a perl script in Windows. It
adds a CR and LF. I try to use this text file on a Unix
box, but it won't work because of the ^Ms at the end of
lines. I can't dos2unix the file in unix environment due
to permissions. Don't ask..... Is there a way to remove
the ^Ms in my windows-based Perl script? I've read some
earlier questions about this where people suggest s/\r//;
This does not work. Any other ideas?