in reply to CSV problem

Another attempt...

CSV is a fairly loose term, everybody thinks differently about it.

Most CSV dialekts use quotes to mark fields that may contain commas. But you always have to check that the tools that read the data actually do it in the same way.

my @records = split m/,/, $line, 10; $records[-1] = qq["$records[-1]"]; print OUT join(',', @records), "\n";

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.