Do you know where your variables are? | |
PerlMonks |
Perl Regex to Fix line feed issueby mmittiga17 (Scribe) |
on May 09, 2008 at 18:59 UTC ( [id://685743]=perlquestion: print w/replies, xml ) | Need Help?? |
mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All I am trying to figure out away to fix a text file that comes in with DOS line feeds. For the most part the lines are ok. However there are a few lines that start with ^M and end in ^M. Ending in ^M is ok.
some text line here^M
^Msome for text line here
What I need is a way to say: when line ends in ^M and the next line begins with ^M join the two lines and add move the ^M the the end of the line.
Any suggestions or idea will be greatly appreciated.
Thanks
MM
Back to
Seekers of Perl Wisdom
|
|