1
187
Is it possible to open a Berkeley 4.2 db file with DB_File?
It doesn't not seem to want to open:
unless ($st = tie %db, "DB_File", 'somedbfile.db', O_RDONLY, 0640,
$DB_HASH) {
die "Cannot open file 'somedbfile.db': $!\n";
}
This code dies when I run it.
(And curiously $! seems to be empty:
Cannot open file 'somedbfile.db':
)
I did a db dump from the db file and heres the header:
VERSION=3
format=print
database=a_test_db
type=hash
h_nelem=3
db_pagesize=4096
Is there any way to read this version of a berk db file in Perl? Thanks.
(Google didn't give mcuh help either, I kept running into posts abotu
using berk 1.* .)
It doesn't not seem to want to open:
unless ($st = tie %db, "DB_File", 'somedbfile.db', O_RDONLY, 0640,
$DB_HASH) {
die "Cannot open file 'somedbfile.db': $!\n";
}
This code dies when I run it.
(And curiously $! seems to be empty:
Cannot open file 'somedbfile.db':
)
I did a db dump from the db file and heres the header:
VERSION=3
format=print
database=a_test_db
type=hash
h_nelem=3
db_pagesize=4096
Is there any way to read this version of a berk db file in Perl? Thanks.
(Google didn't give mcuh help either, I kept running into posts abotu
using berk 1.* .)