RE: :CSV and multi character separator



Garrett, Philip (MAN-Corporate) wrote:
Santosh Pathak wrote:
Hi,

I read on following site that DBD::CSV supports multi-character
separator. But I am not able to use it. my separator is |++|


http://www.annocpan.org/~JZUCKER/DBD-CSV-0.22/lib/DBD/CSV.pm<http://www.
annocpan.org/%7EJZUCKER/DBD-CSV-0.22/lib/DBD/CSV.pm>

Even after setting sep_char to |++|, it doesn't work.
Am I missing something?

The current released version of DBD::CSV does not support this. The
author says he's added support to the next version, but I don't see it
on CPAN yet.

Oops! Wrong on that one. The current released version DOES have that
support, using the csv_class or csv_csv parameters.

Now the problem becomes finding a CSV parser that will do that, and
matches the interface of Text::CSV_XS. I haven't found one yet...

- Philip
.