in reply to Re^6: Parse one fiile, send the records to two different files
in thread Parse one file, send the records to two different files

Why not just print the original line with the new line ending you chomped replaced ?

print $ERR_FH $line."\n";
poj

Replies are listed 'Best First'.
Re^8: Parse one fiile, send the records to two different files
by stevieb (Canon) on May 27, 2016 at 19:01 UTC

    ...or just do this :)

Re^8: Parse one fiile, send the records to two different files
by BigRedEO (Acolyte) on May 31, 2016 at 20:17 UTC
    Thank you! That's got it!