Re: Splitting a variable

2003-01-16 Thread R. Joseph Newton
"Try: split (/\" *, *\"?/, $data)" Sorry, scratch that plan. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Splitting a variable

2003-01-16 Thread R. Joseph Newton
"The problem is with the fields that contain the commas between the quotes" . Hi Joshua, Try: split (/\" *, *\"?/, $data) Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Splitting a variable

2003-01-16 Thread Jason Tiller
Hi, Joshua, :) On Thu, 16 Jan 2003, Scott, Joshua wrote: > I've got a CSV file which I need to process. The format is as follows. > > "Smith, John J",1/1/2002,1/15/2002,"Orlando, FL",Florida > "Doe, John L",1/1/2002,1/15/2002,Los Angeles, California > > I've tried splitting it using: @row = spl

RE: Splitting a variable

2003-01-16 Thread Toby Stuart
> -Original Message- > From: Scott, Joshua [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 17, 2003 10:12 AM > To: [EMAIL PROTECTED] > Subject: Splitting a variable > > > I've got a CSV file which I need to process. The format is > as follows. &g

Re: Splitting a variable

2003-01-16 Thread Jenda Krynicky
From: "Scott, Joshua" <[EMAIL PROTECTED]> > I've got a CSV file which I need to process. The format is as > follows. > > "Smith, John J",1/1/2002,1/15/2002,"Orlando, FL",Florida > "Doe, John L",1/1/2002,1/15/2002,Los Angeles, California > > I've tried splitting it using: @row = split(",",$data)

Re: Splitting a variable

2003-01-16 Thread simran
Try using the Text::CSV module... On Fri, 2003-01-17 at 10:12, Scott, Joshua wrote: > I've got a CSV file which I need to process. The format is as follows. > > "Smith, John J",1/1/2002,1/15/2002,"Orlando, FL",Florida > "Doe, John L",1/1/2002,1/15/2002,Los Angeles, California > > I've tried sp

RE: Splitting a variable

2003-01-16 Thread Scott, Joshua
ginal Message- From: Konrad Foerstner [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 3:29 PM To: Scott, Joshua Cc: [EMAIL PROTECTED] Subject: Re: Splitting a variable On Thu, 16 Jan 2003 15:12:05 -0800 "Scott, Joshua" <[EMAIL PROTECTED]> wrote: > I've g

Re: Splitting a variable

2003-01-16 Thread Konrad Foerstner
On Thu, 16 Jan 2003 15:12:05 -0800 "Scott, Joshua" <[EMAIL PROTECTED]> wrote: > I've got a CSV file which I need to process. The format is as follows. > > "Smith, John J",1/1/2002,1/15/2002,"Orlando, FL",Florida > "Doe, John L",1/1/2002,1/15/2002,Los Angeles, California > > I've tried splitting

Splitting a variable

2003-01-16 Thread Scott, Joshua
I've got a CSV file which I need to process. The format is as follows. "Smith, John J",1/1/2002,1/15/2002,"Orlando, FL",Florida "Doe, John L",1/1/2002,1/15/2002,Los Angeles, California I've tried splitting it using: @row = split(",",$data); The problem is with the fields that contain the comma