Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: MLDBM and Storable

by mce (Curate)
on Dec 24, 2002 at 08:27 UTC ( [id://222070]=note: print w/replies, xml ) Need Help??


in reply to MLDBM and Storable

Hi,

What do you mean: .. have used both correctly...

Plain MLDBM and Storable are complementary. You can use both to store a multilevel hash to disk. In fact MLDBM can use Storable as serialiser. So you don't need to use both.

You need to use

use MLDBM qw(DB_File Storable);

Once you tie-ed the hash, the rest is just transparent. Just fetching the value, setting is or destroying it will change the values on the disk.

I hope this helps. If not, please post some code.
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://222070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found