Meanwhile, the best workaround for the DBI probably to make t/50dbm.t remove from @INC any dirs which match /\/5\.[0-9.]$/ but which don't also have an arch-specific directory in @INC.
This seems simpler (tests for ability to run a method than can only be run if the arch-specific directory is there rather than testing for the existence of the directory):
for (qw(
SDBM_File GDBM_File NDBM_File ODBM_File DB_File BerkeleyDB
)){
undef $@;
eval {
require "$_.pm";
die "bad BerkeleyDB install"
if /BerkeleyDB/ and !BerkeleyDB::Term->can(
'close_everything'
)
};
push @dbm_types, $_ unless $@;
}-- Jeff
