Re^3: Commas in quoted CSV records
by Corion (Patriarch) on Mar 25, 2009 at 08:02 UTC
|
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
The OP quest was not how to install the module, he already seems to have it available, but to find the manual pages, see his last paragraph:
I have the Text-CSV_XS package but can't figure out how to use it.
As I have no idea where the installed manual pages will turn up under windows, someone with more clues might drop in here, as the manual pages for Text::CSV_XS are stuffed with examples.
Enjoy, Have FUN! H.Merijn
| [reply] [Watch: Dir/Any] |
|
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
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
|
|
Re^3: Commas in quoted CSV records
by ikegami (Patriarch) on Mar 25, 2009 at 05:13 UTC
|
I used $fh_in, $fh_kept and $fh_rejected for my file handles. You used something else. Adjust one or the other.
| [reply] [Watch: Dir/Any] |
Re^3: Commas in quoted CSV records
by DrHyde (Prior) on Mar 25, 2009 at 11:20 UTC
|
If you don't know perl well enough, then go and buy a copy of "Learning Perl", work through it, then come back to your problem. You will find that far more effective than just asking here, because people will not just write all your code for you. | [reply] [Watch: Dir/Any] |
|
Thank you so much for your "helpful suggestion". Incidently I own Learning Perl, Programming Perl, The Perl Cookbook and am currently slogging through Mastering Regular Expressions.
I am not interested in having people write code for me but in understanding what the code is doing. "Give a man a fish..." and all that.
Posting here broke the logjam on my problem. I came looking for a solution to one problem and was given an alternative approach. I'll probably still go back and try to clean up my regex to see why behavior in one program differed from behavior in another. In the mean time I can complete my "before the end of the month" project for a client so I'll have more free time for reading studying etc. Darned inconvenient this working for a living. It gets in the way of enlightenment.
| [reply] [Watch: Dir/Any] |