in reply to Re^2: Multiple double quotes within csv
in thread Multiple double quotes within csv
use Text::CSV; my $csv = Text::CSV->new ({ auto_diag => 1, allow_loose_quotes => 1, # optional, also works without this attr +ibute allow_loose_escapes => 1, }); while (my $row = $csv->getline (*DATA)) { say for @$row; } __END__ 0,""Rat Control" <sip:+15559999999@192.168 .5.233>;tag=gK004bb052",9
will produce
0 "Rat Control" <sip:+15559999999@192.168 .5.233>;tag=gK004bb052 9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Multiple double quotes within csv
by Marshall (Canon) on May 13, 2017 at 08:58 UTC | |
by mhooper (Novice) on May 13, 2017 at 12:02 UTC | |
by Anonymous Monk on May 13, 2017 at 14:22 UTC | |
by Marshall (Canon) on May 15, 2017 at 18:05 UTC |