Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Alternative answer - use the CSV file as the database

by space_monk (Chaplain)
on Jun 12, 2013 at 20:27 UTC ( #1038575=note: print w/ replies, xml ) Need Help??


in reply to .csv file in to hash of hashes for a Berkley DB (for a hash newbie)

Not sure why you are using a Berkeley DB, but as a alternative you could use the CSV file itself as the database. Take a look at DBD::CSV.

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)


Comment on Alternative answer - use the CSV file as the database
Re: Alternative answer - use the CSV file as the database
by mcoblentz (Scribe) on Jun 22, 2013 at 06:07 UTC
    I wanted to use DBD::CSV on my Mac, but it won't install - several tests fail. Not sure how to work around that issue.

      Currently, some test failures can be ignored. Keep an open eye, we plan to make a new DBD::CSV release soon. There have been a lot of changes in the underlying modules that needed to be accounted for.


      Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-10-22 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls