in reply to making object hashes persistent

If your datastructure is a simple key-value hash (i.e. not a hash containing arrayrefs, hashref, etc), you could tie your hash to a DBM file to write directly to the disk. This way your memory usage would be minimal.

See arhuman's reply!

ar0n ]

  • Comment on (ar0n) Re: making object hashes persistent

Replies are listed 'Best First'.
Re: (ar0n) Re: making object hashes persistent
by arhuman (Vicar) on Apr 23, 2001 at 15:06 UTC
    For more complex structures (constaining refs)
    you can play with MLDBM
    It uses Data::Dumper by default to serialize your data,
    but you can use your favourite persistence module instead, like Storable for example...

    "Only Bad Coders Badly Code In Perl" (OBC2IP)