Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Help in Connecting to Berkely DB using PERL

by koti688 (Sexton)
on Nov 06, 2008 at 09:25 UTC ( [id://721921]=perlquestion: print w/replies, xml ) Need Help??

koti688 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, Can u Please tell me how to connect to Berkely Db using Perl .
I have two files , i need to access these file using perl. These files with .db extension contains Keys and its Signatures.
I need to List out the keys and vaules and signatures respectively.
I Have installed Berkely-DB(0.22), BerkelyDB-Lite,DB_File(1.816) using PPM also.
Please tell me if u know any thing , about connecting to berkely Db using perl even.
Thanks in advance.
Koti.
  • Comment on Help in Connecting to Berkely DB using PERL

Replies are listed 'Best First'.
Re: Help in Connecting to Berkely DB using PERL
by Anonymous Monk on Nov 06, 2008 at 09:58 UTC
Re: Help in Connecting to Berkely DB using PERL
by Perlbotics (Archbishop) on Nov 06, 2008 at 09:59 UTC

    Perl comes with out-of-the box Berkely-DB support. Maybe reading DB and DB_File provides an answer? You could tie the DB to a hash and use that to access the values by key...
    Or is there a problem opening the DB? Maybe the files are named *.db but aren't in Berkely-DB format?

    Update: Wrong link removed. Example link added.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://721921]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (9)
As of 2024-04-24 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found