Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Storable to Data::Dumper again

by ph0enix (Friar)
on Jan 09, 2003 at 11:33 UTC ( [id://225508]=note: print w/replies, xml ) Need Help??

in reply to Storable to Data::Dumper again

Hash to be stored must be converted into scalar. This conversion is done by Storable::nfreeze. The MLDBM module does this conversion for you silently and store this linearized value to DBM file you specify using proper module (DB_File is used in your example).

In your example the %o hash is stored in testmldbm file which is BerkeleyDB database file. Not less and not more. Also please read BUGS and WARNINGS section in MLDBM documentation to know about problems with nested structures modification.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-06-15 11:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.