perl -MText::CSV -lne 'BEGIN{$c=Text::CSV->new({always_quote=>1})} $c->parse($_); $c->print(\*STDOUT,[$c->fields])' textfile.csv