in reply to Format Streaming Text file with CR/LF

I don't know if you want to add or remove the CR/LF, but in either case the <c>:crlf IO-Layer might help:
binmode HANDLE, ':crlf';

If not, try asking a more specific question.