Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038575]
[usemodperl]: question
[usemodperl]: perldoc -v 'ARGV' works but perldoc -v "STDIN' does not, but they are both filehandles. is there a perldoc for STDIN?
[usemodperl]: (typo not withstanding :)
usemodperl thinks about loose coupling...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-06-19 19:19 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.