I'm using perl on windows to mimic *nix bash style functionality. Is it possible to fully view text files via perl command line? i.e. like cat -A file.txt?
I'm editing some etexts so I can print them nicely, and I'm replacing nonprinting chars via perl. I get ^M$ (in bash not DOS prompt) at the ends of lines, which I want to get rid of. I hear chomp can do it, but how do I manage it from command line?
If it can't, why doesn't perl -p -i- -e 's/\r\n/\b/g' file not do it.