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); > > 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.
use Text::CVS_XS; Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]