The stupid question is the question not asked | |
PerlMonks |
Re: Removing carriage returns from source codeby Anonymous Monk |
on Nov 03, 2001 at 06:29 UTC ( [id://122991]=note: print w/replies, xml ) | Need Help?? |
It might be those annoying ^M's. <CODE> #!/usr/locl/bin/perl while(<>) { s/\cM//g; print; } <CODE> ~ :w no_cM.pl % ./no_cM.pl < annoying_file.txt > ahhh.txt
In Section
Seekers of Perl Wisdom
|
|