in reply to Re: swapping PIPE for comma in CSV file
in thread swapping PIPE for comma in CSV file
A few people missed this (myself included).
You have to split on a pair of double quotes or no quotes at all. There's the field with commas in it which you can't replace with a pipe so a simple regex or split/join won't work (at least without a massive regex on the split).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: swapping PIPE for comma in CSV file
by girarde (Hermit) on Jun 26, 2007 at 16:59 UTC | |
by Anonymous Monk on Jun 26, 2007 at 17:06 UTC | |
by girarde (Hermit) on Jun 28, 2007 at 13:36 UTC |
In Section
Seekers of Perl Wisdom