Skip Menu |

This queue is for tickets about the MLDBM CPAN distribution.

Report information
The Basics
Id: 3223
Status: resolved
Worked: 3 min
Priority: 0/
Queue: MLDBM

People
Owner: CHAMAS [...] cpan.org
Requestors: jari.aalto [...] poboxes.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Request: Like AnyDBM_File, pick the first DBM library seen.
Please refer to message for this wished addtion to MLDBM. User should not know what DBM he needs in current environment. http://groups.google.com/groups?q=Storable+Data::Dumper+FreezeThaw&hl=en&lr=&ie=UTF-8&oe=utf-8&selm=130719992239437576%25stupid%40pobox.com&rnum=11 Nessage-Id: <130719992239437576%stupid@pobox.com>#1/1 From: Michael G Schwern <stupid@pobox.com> Subject: Re: What's faster: GDBM or Storable Newsgroups: comp.lang.perl.misc Date: 1999/07/13 [...zap...] 2) Use MLDBM. It allows you to store arbitrarily complex data structures on disk. It makes use of DBM files -and- Storable. Only problem is that you have to tell it exactly what DBM implementation to use, which is kinda lame. But that can be changed. PLEASE READ THE "BUGS" SECTION IN THE MLDBM MAN PAGE! You have to be a little careful about how its used. # Just like AnyDBM_File, we pick the first DBM library we see. # You can replace @AnyDBM_File::ISA with your own list if you like. my $DBM; BEGIN { for $mod (@AnyDBM_File::ISA) { if (eval "require $mod") { $DBM = $mod; return 1; } } } # Tell MLDBM to use the DBM library we found and Storable (you can # also use FreezeThaw or Data::Dumper) use MLDBM ($DBM, "Storable"); [...zap...]