Re: Parsing question...

2004-09-08 Thread Clive Eisen
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.

RE: Parsing question...

2004-09-07 Thread NIPP, SCOTT V \(SBCSI\)
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

Re: Parsing question...

2004-09-07 Thread Ravi Kongara
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 ) {

RE: Parsing question...

2004-09-07 Thread NIPP, SCOTT V \(SBCSI\)
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

Re: Parsing question...

2004-09-07 Thread Jeff Zucker
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