Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: CSV SPLIT

by locked_user sundialsvc4 (Abbot)
on Jun 21, 2013 at 13:06 UTC ( [id://1040156]=note: print w/replies, xml ) Need Help??


in reply to CSV SPLIT

Serene, Text::CSV is simply the first step:   the one that will effortlessly and correctly (let you) deal with niggling details such as commas within your comma-separated values.   It will correctly produce a Perl data structure corresponding to it.

Baby steps first.   Find examples of Text::CSV and Data::Dumper.   Complete your program to the point where it successfully parses your CSV file and then dumps a correct data-structure so that you can look at it.   That is step one.   Cross that bridge, and prove that you have crossed it.   Next, deal with the separate issue of transforming that data structure into the output that you need.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2026-01-18 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (122 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.