1*0Sstevel@tonic-gatepackage Memoize::AnyDBM_File;
2*0Sstevel@tonic-gate
3*0Sstevel@tonic-gate=head1 NAME
4*0Sstevel@tonic-gate
5*0Sstevel@tonic-gateMemoize::AnyDBM_File - glue to provide EXISTS for AnyDBM_File for Storable use
6*0Sstevel@tonic-gate
7*0Sstevel@tonic-gate=head1 DESCRIPTION
8*0Sstevel@tonic-gate
9*0Sstevel@tonic-gateSee L<Memoize>.
10*0Sstevel@tonic-gate
11*0Sstevel@tonic-gate=cut
12*0Sstevel@tonic-gate
13*0Sstevel@tonic-gateuse vars qw(@ISA $VERSION);
14*0Sstevel@tonic-gate$VERSION = 0.65;
15*0Sstevel@tonic-gate@ISA = qw(DB_File GDBM_File Memoize::NDBM_File Memoize::SDBM_File ODBM_File) unless @ISA;
16*0Sstevel@tonic-gate
17*0Sstevel@tonic-gatemy $verbose = 1;
18*0Sstevel@tonic-gate
19*0Sstevel@tonic-gatemy $mod;
20*0Sstevel@tonic-gatefor $mod (@ISA) {
21*0Sstevel@tonic-gate#  (my $truemod = $mod) =~ s/^Memoize:://;
22*0Sstevel@tonic-gate#  my $file = "$mod.pm";
23*0Sstevel@tonic-gate#  $file =~ s{::}{/}g;
24*0Sstevel@tonic-gate  if (eval "require $mod") {
25*0Sstevel@tonic-gate    print STDERR "AnyDBM_File => Selected $mod.\n" if $Verbose;
26*0Sstevel@tonic-gate    @ISA = ($mod);	# if we leave @ISA alone, warnings abound
27*0Sstevel@tonic-gate    return 1;
28*0Sstevel@tonic-gate  }
29*0Sstevel@tonic-gate}
30*0Sstevel@tonic-gate
31*0Sstevel@tonic-gatedie "No DBM package was successfully found or installed";
32