package Memoize::AnyDBM_File; =head1 NAME Memoize::AnyDBM_File - glue to provide EXISTS for AnyDBM_File for Storable use =head1 DESCRIPTION See L<Memoize>. =cut use vars qw(@ISA $VERSION); $VERSION = '1.02'; @ISA = qw(DB_File GDBM_File Memoize::NDBM_File Memoize::SDBM_File ODBM_File) unless @ISA; my $verbose = 1; my $mod; for $mod (@ISA) { # (my $truemod = $mod) =~ s/^Memoize:://; # my $file = "$mod.pm"; # $file =~ s{::}{/}g; if (eval "require $mod") { print STDERR "AnyDBM_File => Selected $mod.\n" if $Verbose; @ISA = ($mod); # if we leave @ISA alone, warnings abound return 1; } } die "No DBM package was successfully found or installed";
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
AnyDBM_File.pm | File | 674 B | 0644 |
|
Expire.pm | File | 11.43 KB | 0644 |
|
ExpireFile.pm | File | 1.03 KB | 0644 |
|
ExpireTest.pm | File | 883 B | 0644 |
|
NDBM_File.pm | File | 1.45 KB | 0644 |
|
SDBM_File.pm | File | 1.45 KB | 0644 |
|
Storable.pm | File | 1.38 KB | 0644 |
|