RE: Cleanest way to split this

2001-07-25 Thread Grant McLean
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > There's also the procedure in Mastering Regular Expressions: > (lifted from The Perl Cookbook) > > [CODE FOLLOWS] snip > [END OF CODE] > The assumption is the text based fields are enclosed in > quotes (like your example) As a matter of inte

RE: Cleanest way to split this

2001-07-24 Thread jbarry
There's also the procedure in Mastering Regular Expressions: (lifted from The Perl Cookbook) [CODE FOLLOWS] sub parse_csv{ my $text = shift; #record containing comma sep values my @new = (); push(@new, $+) while $text =~ m{ #the first part groups the phase

RE: Cleanest way to split this

2001-07-24 Thread Wagner-David
Here are some modules( ActiveState ): DBD-CSV [0.1025] DBI driver for CSV files Text-CSV[0.01 ] comma-separated values manipulation routines Text-CSV_XS [0.22 ] comma-separated values manipulation routines XML-CSV [0.10 ] Perl extension converting CSV files to XML

RE: Cleanest way to split this

2001-07-24 Thread Bob Showalter
> -Original Message- > From: Filip Sneppe (Yucom) [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 1:42 PM > To: [EMAIL PROTECTED] > Subject: Cleanest way to split this > > > Hi, > > I have input lines that look like this: > > username,[EMAIL PROTECTED],age,streetname numbe