If I understand you correctly, you're getting a single line now, yes? Try adding a newline to the joined string:
if (!length $fields[28]) { chomp @fields; my $str = join ',', @fields; print $ERR_FH "$str\n"; }
In reply to Re^7: Parse one fiile, send the records to two different files
by stevieb
in thread Parse one file, send the records to two different files
by BigRedEO
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |