Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Low-threshold function in Text::CSV_XS

by davido (Archbishop)
on Jan 24, 2014 at 19:44 UTC ( #1071987=note: print w/replies, xml ) Need Help??

in reply to Low-threshold function in Text::CSV_XS

Tie::CSV_File seems like a nice abstraction on CSV. The only thing lacking is it would be nice to be able to tell it that the top CSV row specifies column names, or to be able to supply a list of column names, and then get an AoH instead of the default AoA.


  • Comment on Re: Low-threshold function in Text::CSV_XS

Replies are listed 'Best First'.
Re^2: Low-threshold function in Text::CSV_XS
by Tux (Abbot) on Jan 25, 2014 at 12:45 UTC

    Tie::CSV_File fills a niche, but does not lower the threshold for beginners. I even think that using tie is way outside of the problem I am trying to understand: to lower the barrier to use CSV *safely* and reliable without people complaining the API is too difficult.

    Using tie, I personally prefer to use Tie::Hash::DBD in combination with DBD::CSV, as I can then transparently switch to DBD::SQLite, DBD::Pg or any other relational database when CSV turns out to be too slow.

    Enjoy, Have FUN! H.Merijn

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-08-20 20:17 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (196 votes). Check out past polls.