Going in reverse is left as an exercise for the reader. Note for the unwary, what about trailing commas, embedded commas, and embedded returns? :-)sub list2csv { my $line = join ",", map { my $t = $_; $t =~ s/"/""/g; $t =~ /\W/ ? qq("$t") : $t; } @_; $line .= "\n"; return $line; }
In reply to Re (tilly) 1: quick quote comma
by tilly
in thread quick quote comma
by rpc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |