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

Does chomp on the array reflect in any change?:

if (!length $fields[28]) { chomp @fields; print $ERR_FH join (',', $_) for @fields; }

Replies are listed 'Best First'.
Re^6: Parse one fiile, send the records to two different files
by BigRedEO (Acolyte) on May 27, 2016 at 18:32 UTC
    No - that did not do it either. It's as if it's not joining the fields back together with the commas to print each line. It's still writing every field that is not empty into the errorFiles.csv with a space in between each field as one continuous line.