Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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
Replies are listed 'Best First'.
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 studying the Monastery: (11)
As of 2015-07-28 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls