|
|
| P is for Practical | |
| PerlMonks |
RE: Remove the ^M Character from a Documentby Anonymous Monk |
| on Mar 22, 2000 at 19:12 UTC ( [id://5912]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If you're in a Unix environment (where \n is the EOL char) you can just as easily do:
perl -pi -e 's/\r//g' <file name>
This works because in DOS, EOL is represented at \r\n.
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||||||||||