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


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

Well, the double quotes are being inserted to be able to distinguish between the comma as a field separator and the comma within the fields, eg " C ,nt ". If you write the data to file without them, then you lose this ability.

If that is really what you desire, then something like print $out_fh join ",", @$row; might work better for you than using Text::CSV. However, I cannot really imagine why this would be useful...

UPDATE: ...or use

$csv = Text::CSV->new ({ quote_char => undef });