Just goes to prove that one should always look on CPAN before writing
almost anything ..
NIPP, SCOTT V (SBCSI) wrote:
The suggestion of using Text::CSV_XS was the winner. This is a
very simple module to use. Thanks for the feedback though.
PROTECTED]
Sent: Tuesday, September 07, 2004 2:05 PM
To: NIPP, SCOTT V (SBCSI)
Cc: [EMAIL PROTECTED]
Subject: Re: Parsing question...
What i understood from your question is , you want to split strings that
have comma within
quotes. Forgive me if i'm wrong.
If elements of @data are re-split , yo
What i understood from your question is , you want to split strings that
have comma within
quotes. Forgive me if i'm wrong.
If elements of @data are re-split , you can get multiple fields from it.
< ...snip... >
my @new_data;
while () {
@data = split(/,\s*/);
foreach my $string ( @data ) {
Phone: (214) 858-1289
E-mail: [EMAIL PROTECTED]
Web: http:\\ldsa.sbcld.sbc.com
-Original Message-
From: Jeff Zucker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 1:18 PM
To: NIPP, SCOTT V (SBCSI)
Cc: [EMAIL PROTECTED]
Subject: Re: Parsing question...
Is there some reaso
Is there some reason you aren't using DBD::CSV or its parser
(Text::CSV_XS), which handle this and a number of other problem issues
with parsing CSV? Why reinvent the wheel?
--
Jeff
NIPP, SCOTT V (SBCSI) wrote:
This isn't specifically a DBI question, but it is a part of a
database script I am