Re: [htdig] Question about Htdig's database

Subject: Re: [htdig] Question about Htdig's database
From: Geoff Hutchison (
Date: Tue Oct 03 2000 - 05:33:04 PDT

At 10:40 AM +0100 10/3/00, Adam Rice wrote:
>Geoff Hutchison wrote:
> > > Second question -- can I use such a database from my own Perl script?
> >
> > Can you use a Berkeley DB? Sure, use the DBI interface--it should be part
> > of your Perl 5 installation.
>No. Well, maybe there's a DBI driver that works with Berkeley DB, but I
>recommend using the DB_File module instead.
>use DB_File;
>tie %something, "DB_File", "a_file_on_disk.db";
>that's all the code you need to make the %something hash be stored on
>disk using Berkeley DB. There are some restrictions compared to a normal
>Perl hash, and some more clever stuff you can do, see the DB_File
>manpage for details. AFAIK, a complete Perl installation on most modern
>Linux systems will include the DB_File module, otherwise you will have
>to mess around getting it from CPAN.

Yes, I misspoke. I meant to say DB_File, not DBI. Thanks for correcting me.


-Geoff Hutchison
Williams Students Online

------------------------------------ To unsubscribe from the htdig mailing list, send a message to You will receive a message to confirm this. List archives: <> FAQ: <>

This archive was generated by hypermail 2b28 : Tue Oct 03 2000 - 05:38:13 PDT