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 Programming is as much about organization and communication as it is about coding. The secret to great software: Fail early & often. Eliminate software piracy: use only FLOSS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/