On 08/08/2012 18:09, punit jain wrote:
I now have another issue :- 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 ? I could not find any connect or something similar method to connect to existing db
You don't need to do anything. The module will open an existing file if there is one, otherwise it will create a new one. Also, you don't need the `locking` or `autoflush` options unless you are using the same database concurrently from two programs or threads. Normally just my $db = DBM::Deep->new("hash.db"); is what you want. Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/