![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Clean line endsby Scarborough (Hermit) |
on Jan 19, 2007 at 09:59 UTC ( [id://595426]=perlquestion: print w/replies, xml ) | Need Help?? |
Scarborough has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem with text files being passed between systems. I have a text file from a COBOL program which is t ransfered to a legacy datastore. The COBOL guy is not willing to look at it but the line endings are shot meaning the datastore rejects it. Looking in an editor which displays line end charecters I have found this
I need to replace the \lf characters with \cr\lf on the empty lines. Any ideas? Thanks
Back to
Seekers of Perl Wisdom
|
|