[BNE-PM] Anyone played with DB_File?

Andrew Pollock apollock at bit.net.au
Mon Sep 13 03:00:17 CDT 1999


Hi again,

Has anyone played with DB_File very much?

I'm trying to talk to a Sendmail 8.9.x (libdb2) hash, and I'm not having
much success.

use DB_File;

tie %aliases, 'DB_File', "/etc/aliases", "RDONLY", 0640, $DB_HASH || die
"Couldn't do it: $!\n";
foreach (%aliases) {
        print "$_ = %aliases{$_}\n";
}
untie %aliases;

It doesn't die, but it doesn't work either...

Andrew

----
Andrew Pollock          Technical Director
apollock at bit.net.au     http://staff.bit.net.au/apollock
Brisbane Internet Technology Pty Ltd.




More information about the Brisbane-pm mailing list