kevind0718 has asked for the wisdom of the Perl Monks concerning the following question:

hello: I am looking for a recommendation for a module to use to parse simple CSV files. Simple in this case simple means I will never see newlines within the data. (What is it they say "Never say never"). There are several out on CPAN.

many thanks

kd

Replies are listed 'Best First'.
Re: parse CSV
by Tux (Canon) on Sep 17, 2007 at 15:34 UTC
Re: parse CSV
by cosmicperl (Chaplain) on Sep 17, 2007 at 23:08 UTC
    I've always used Text::CSV, I like it because I can get it working without doing a proper make install (just grabbing the .pm module*). That means I can easily through it in with a script I produce and don't have to worry about the resulting server having the module installed. After all they may be on shared hosting, and unable to do a proper make install.

    Lyle Hopkins
    * I tell a little lie, I also had to copy over another file, but I can't remember what it was...

      FYI: The plan is to make Text::CSV a thin wrapper over Text::CSV_XS and Text::CSV_PP and use whatever is available (in that order).

      Maintainership has already been transferred to the author of Text::CSV_PP


      Enjoy, Have FUN! H.Merijn