Hi Punit,

On Wed, 8 Aug 2012 17:51:05 +0530
punit jain <contactpunitj...@gmail.com> wrote:

> Hi ,
> 
> I am using DBM::Deep to store my HoH.
> 
>  my $db = new DBM::Deep(
>              file => "hash.db",
>              locking => 1,
>              autoflush => 1
>         );
> 
> I want to reuse the same hash.db next time I run rather than recreate
> hash.db from scratch using new. Is it possible to do so ?
> 

The whole point of DBM::Deep is to provide on-disk persistence (otherwise, you 
would
just use Perl's built-in in-memory data structures), so it is possible to do so.

In https://metacpan.org/module/DBM::Deep , search for "load" - just call the
constructor normally and the existing file will be read and loaded.

Regards,

        Shlomi Fish

> Regards,
> Punit



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Perl Humour - http://perl-begin.org/humour/

There is no IGLU Cabal! Its members can be arranged in N! orders to form N!
different Cabals. The algorithm to find which order formulates the correct
IGLU Cabal is NP‐Complete.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to