while() { chomp; s/,,/,/; s/,/","/g; print OUTFILE1 "\"$coid\",\"$_\"\n"; }