> -----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.
> 
> "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 commas 
> between the quotes.
> It's splitting the fields at each of these fields as well and 
> I'd like to
> know how to avoid that.  
> 
> Any help is greatly appreciated!
> 

Get the Text::CSV_XS module

http://search.cpan.org/author/JWIED/Text-CSV_XS-0.23/CSV_XS.pm

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to