in reply to Which DBM implementation?
And then run it with the debugger. Step THROUGH the dbmopen and you'll see things like:dbmopen(%FOO, "hlag", 0666) || die;
AnyDBM is going to step through that @ISA array to find which database is available. The one where the eval works, is the one that you're using.4: our @ISA = qw(NDBM_File DB_File GDBM_File SDBM_File ODBM_File) + unless @ISA; nyDBM_File::(/usr/local/lib/perl5/5.6.0/AnyDBM_File.pm:6): 6: my $mod; nyDBM_File::(/usr/local/lib/perl5/5.6.0/AnyDBM_File.pm:7): 7: for $mod (@ISA) { nyDBM_File::(/usr/local/lib/perl5/5.6.0/AnyDBM_File.pm:8): 8: if (eval "require $mod") {
There are more hackish ways of doing this like looking at %INC after the dbmopen to see what got brought in successfully.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Which DBM implementation?
by tomazos (Deacon) on Jun 12, 2001 at 19:28 UTC |