in reply to txt to csv

G'day serene_monk,

Good to see you've made progress since: CSV SPLIT.

In the documentation for Text::CSV, take a look at the attributes available for the constructor (i.e. new (\%attr)) in the FUNCTIONS section.

Without seeing your data (except for " " in isolation), I'd guess quote_char would be the one that directly relates to this:

"The char used for quoting fields containing blanks, by default the double quote character ("). A value of undef suppresses quote chars. ..."

There are quite a few other attributes relating to quoting, whitespace in fields, etc., so have a read through them all. The defaults you'll get from using no attributes (i.e. my $csv = Text::CSV->new();) are shown near the end of that section.

-- Ken