http://www.perlmonks.org?node_id=1041177


in reply to Re^4: Text to CSV with user input comma
in thread Text to CSV with user input comma

So you are reading from a file, split on comma, then write it into another file. I would expect that there are no commas in the data you are writing to the new file as all commas are gone due to the splitting.

Probably some example would be useful like an input line and the corresponding output line that has double quotes in front of every word.