in reply to Re: Creating .csv file with comma
in thread Creating .csv file with comma

Actually I am using Text::CSV to create the file, that's why the double quotes are been inserted in the file, is there a why to only have one set of quotes instead of two?

Replies are listed 'Best First'.
Re^3: Creating .csv file with comma
by haukex (Archbishop) on Apr 24, 2020 at 06:44 UTC
    Actually I am using Text::CSV to create the file, that's why the double quotes are been inserted in the file, is there a why to only have one set of quotes instead of two?

    Really? Because if you run the code I showed as-is, the string is surrounded by only one pair of double-quotes, as you want (1234565,Prototype,"Number in address is 100. Please, Please check your records."). And if you add double-quotes to the code I showed, it generates three double quotes in the output, not two, and that's the correct format if your double-quotes are escaped by doubling them. So again, show the code you're using.

Re^3: Creating .csv file with comma
by Anonymous Monk on Apr 24, 2020 at 01:53 UTC

    Actually I am using Text::CSV to create the file, that's why the double quotes are been inserted in the file, is there a why to only have one set of quotes instead of two?

    tickle the options :) escape_char