Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Storable and MLDb

by tokpela (Chaplain)
on Nov 18, 2010 at 19:25 UTC ( #872331=note: print w/ replies, xml ) Need Help??


in reply to Storable and MLDb

If you are looking at saving data to disk in a hash structure, my recommendation is to use DBM::Deep.

It's pure Perl, fast and very stable.

use strict; use warnings; use DBM::Deep; my $dbm = DBM::Deep->new('mj-test-schedules'); $dbm->{'some_key_name'} = 'some value'; for (keys %$dbm) ) { print "$_ => $dbm->{$_}\n"; }


Comment on Re: Storable and MLDb
Download Code
Re^2: Storable and MLDb
by saintex (Scribe) on Nov 19, 2010 at 14:07 UTC
    I tried your code, but unluckily I have:
    DBM::Deep: Signature not found -- file is not a Deep DB at prova2.pl line 6 Br />

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-07-05 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls