in reply to Re^3: Multiple double quotes within csv
in thread Multiple double quotes within csv
Apparently although the OP's CSV line is technically incorrect according to the CSV spec, some smart folks who wrote Text::CSV anticipated this and have an option for it.Input Line: 8,""Rat Control" <sip:+15559999999@192.168 .5.233>;tag=gK004bb052",9 Output Line: 8|"Rat Control" <sip:+15559999999@192.168 .5.233>;tag=gK004bb052|9
Thank you Tux!
As a comment: I always use the pipe, | character when I generate "CSV" files.
Using a different character than "comma" is allowed by the spec. What is shown as the "output" line above, would be my "input" line with no need to use a complex module to parse things (in most, but not all cases). Of course
we have to deal with what we get from others.. such is the nature of the beast.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Multiple double quotes within csv
by mhooper (Novice) on May 13, 2017 at 12:02 UTC | |
|
Re^5: Multiple double quotes within csv
by Anonymous Monk on May 13, 2017 at 14:22 UTC | |
by Marshall (Canon) on May 15, 2017 at 18:05 UTC |