|XP is just a number
Clean line endsby Scarborough (Hermit)
|on Jan 19, 2007 at 09:59 UTC
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?