in reply to
split question
split
isn't the tool to use for this. Try
Text::CSV
.
Unless I state otherwise, all my code runs with
strict
and
warnings
Comment on
Re: split question
Replies are listed 'Best First'.
Re^2: split question
by
rovf
(Priest)
on May 30, 2008 at 08:53 UTC
Though I think too that Text::CSV is the best to use here (especially since it can handle escaped quotes (\"), I think in this simple case, split *can* be used:
(1) remove the very first and the very last quote, then:
(2) split /","/,....
--
Ronald Fischer <ynnor@mm.st>
[reply]
In Section
Seekers of Perl Wisdom