in reply to Re^4: Commas in quoted CSV records
in thread Commas in quoted CSV records

Just run perldoc Text::CSV from the command line and the man-page is shown.

There is also a HTML-ized version if you have Activestate Perl: on my system it is at C:/Data/Perl/html/index.html, but YMMV.

The perldoc command should work anywhere.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^6: Commas in quoted CSV records
by generator (Pilgrim) on Mar 25, 2009 at 20:14 UTC
    Thanks for your guidance.

    I'd been looking for a seperate documentation file for the Package and didn't realize the package docs were integrated into the Perl installation's documentation. I'm using it now to study ikegami's suggested Text::CSV_XS code snippet.

    I'll want to expand on it to leave the quoted fields, quoted, and to expand the filter to incorporate additional criteria.

    Thanks again for chiming in with a positive suggestion.

Re^6: Commas in quoted CSV records
by generator (Pilgrim) on Mar 25, 2009 at 22:24 UTC
    Many thanks!

    Who knew?
    perldoc Text::CSV_XS from the command line turned on some lights around here.
    I also eventually found that the Text::CSV_XS package documentation is "added to" the basic perl documentation. I had been looking for some distinct (doc|html|txt) file for Text::CSV_XS.
    Thanks again for your willingness to share and positive vibe!
    ----------

  • generator

      You'll find that many modules have documentation inline with the code. For example, Text::CSV code is in "C:\Perl\site\lib\Text\CSV.pm" (base path depending on where you installed Perl, of course, and file path may be slightly different if you didn't use ppm to install the module). But that file also contains all of the documentation you see when you invoke perldoc Text::CSV. I have Text::CSV 1.10 installed, and the documentation is all at the end of the .pm file (beginning around line 220 or so).

      Some modules also have HTML-ified documentation. Text::CSV is one of those. This file is at "C:\Perl\html\site\lib\Text\CSV.html". I'm not positive, but I think that's due to installation through later versions of ppm. I have many more modules installed (in C:\Perl\site\lib) but very few other html files.

      But I've never found a module that, once installed, didn't have any documentation via perldoc Module::Name. So I tend to use that a lot more than looking for any HTML files.

      Added: Not sure why this is being downvoted. If you feel the need to downvote and have a chance to reply or /msg, I'd appreciate hearing your reasoning.