MESSAGE
DATE | 2003-04-07 |
FROM | Billy
|
SUBJECT | Re: [hangout] Pattern Matching
|
On Mon, Apr 07, 2003 at 02:03:23PM -0400, Joe Villari wrote: > > I have a comma seperated file that I'm splitting into an array in perl. > I'm trying to write a pattern that will make a comma, Some Company, Inc, > read as a comma and not cause $_ to split with -at-data = split /,/, $_;
Impossible. *REAL* csv files use Quotes for fields like
"Some Company,Inc."
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm#FileFormat ____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|