TQuid has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl5 -w dbmopen(%db, 'member.dir', 0644) or die "Can't open member: $!\n"; foreach $i (keys %db) { print "$i ==> $db{$i}\n"; }
It seems to make little difference whether I put in 'member', 'member.pag', or 'member.dir', as above. The script doesn't die, but neither does it print anything out. Trying to use DB_File and NDBM_File more directly doesn't seem to have panned out. A 'file member.dir' says this is an NDBM 1.x or GDBM file, and being on BSDI, I suspect it's probably NDBM. I've been unable to get GDBM_File working on the new system, though it appears to have gdbm installed. I'm going to pursue that tack a bit now, but thought I would post here and check back now and again to see if I'm being thoroughly stupid. Is there any hope?
--TQuid
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: .pag and .dir - what db format??
by maverick (Curate) on Aug 09, 2000 at 00:00 UTC | |
|
Re: .pag and .dir - what db format??
by Speedfreak (Sexton) on Aug 09, 2000 at 01:56 UTC | |
|
Re: .pag and .dir - what db format??
by chromatic (Archbishop) on Aug 09, 2000 at 07:36 UTC | |
|
Re: .pag and .dir - what db format??
by Anonymous Monk on Aug 06, 2001 at 13:12 UTC |