[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MLDBM vs. Storable



At 21.35 -0400 2000.04.11, Ricky Morse wrote:
>Hi!  I'me developing a Perl program which will be dealing with complex
>data structures.  I would like to be able to save these to disk, and have
>a (basic?) question:
>
>What are the pros and cons of using MLDBM vs. Storable to save data
>structures to disk?

They do different things.  MLDBM is for accessing data structures with DBM
libraries.  Storable just serializes a data structure.  MLDBM can use
Storable for serialization.  If you just want to save a data structure to
disk, use Storable (or FreezeThaw, or some other serializer).  If you want
to access the data structures using tie and DBM stuff, then use MLDBM.

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org