Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: parsing malformed CSV with per column quote chars

by dasgar (Priest)
on Aug 07, 2014 at 18:19 UTC ( #1096675=note: print w/replies, xml ) Need Help??

in reply to parsing malformed CSV with per column quote chars

Just did a quick search on metacpan for "tie hash csv". It looks like Tie::Handle::CSV might be doing something along the lines of what you want. After doing a quick scan through its documentation, it looks like it shouldn't be too difficult to create a hash using this module.

If I understand your previously used method correctly, Tie::Array::CSV can easily parse out a CSV file into an AoA structure - or as I like to think of it, a two dimensional array. It also allows you to pass parameters to Tie::File and Text::CSV, which it uses to do all of the real work.

  • Comment on Re: parsing malformed CSV with per column quote chars

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1096675]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2018-03-24 01:04 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.