Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Commas in quoted CSV records

by generator (Pilgrim)
on Mar 25, 2009 at 04:48 UTC ( [id://753011]=note: print w/replies, xml ) Need Help??


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

Thanks for the reply. I'd love to use the package processes but I can't figure out how to apply it. I can't find any documentation that is explicit enough for an inexperienced PERL programmer like me to understand. I tried to insert the process you suggested but am getting errors related to "...requires explicit package name" on any number of lines. I'd love to find some brief discussion of the suggested Package function that would spell out the syntax and process. Any thoughts? Thanks again for chiming in. I feel like there is hope!

Replies are listed 'Best First'.
Re^3: Commas in quoted CSV records
by Corion (Patriarch) on Mar 25, 2009 at 08:02 UTC

      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
        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

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.
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.
      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://753011]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found