>From: jm [mailto:jm5...@gmail.com] >Sent: Friday, November 05, 2010 10:21 AM > >i appreciate the tips. unfortunately, adding modules to this server >is not currently possible. does anyone have a more 'hands-on' >solution?
Take a look at the Text::ParseWords module. I believe it should be installed. perldoc Text::ParseWords. I have used it for similar problems in the past. Ken >>On Fri, Nov 5, 2010 at 8:53 AM, Shawn H Corey <shawnhco...@gmail.com> wrote: >> On 10-11-05 09:34 AM, jm wrote: >>> >>> i have csv files in the following format, where some fields are >>> enclosed in double quotes if they have commas embedded in them and all >>> other fields are simply comma-delimited without any encapsulation >> >> The best way to deal with CSV is to use a module from CPAN. >> >> Text::CVS http://search.cpan.org/~makamaka/Text-CSV-1.20/lib/Text/CSV.pm >> >> Text::CSV_XS http://search.cpan.org/~hmbrand/Text-CSV_XS-0.76/CSV_XS.pm >> >> >> Just my 0.00000002 million dollars worth, >> Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/