in reply to Re^2: Commas in quoted CSV records
in thread Commas in quoted CSV records

I used $fh_in, $fh_kept and $fh_rejected for my file handles. You used something else. Adjust one or the other.