in reply to CSV cleanup problem...
I was going to suggest that you transform
to"title", "Some Name, "some wierd title"", "555-555-5555"
using'title'|'Some Name, "some wierd title"'|'555-555-5555'
$line =~ s[^"|"$][']g; $line =~ s[",\s"]['|']g;
And then set
my $csv = Text::CSV_XS->new({ 'quote_char' => "'", 'sep_char' => '|', });
But for some reason I do not understand, Text::CSV_XS fails to parse using these parameters.
As far as I can tell from the docs this combination ought to work, but it doesn't, and I can't find any way to determine what it is that it doesn't like.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CSV cleanup problem...
by jZed (Prior) on Jun 14, 2005 at 05:56 UTC |