deibyz has asked for the wisdom of the Perl Monks concerning the following question:
Assume I have a DB_File tied hash created in memory, with something in the lines of:
After populating it with some key/value pairs (potentially many), given some conditions I would like to create a proper db_file on disk with this data, but I would like to do it directly, without having to go through each %$h or something like that, to avoid performance penalties. I've been searching in the DB_File and dbopen documentations, but haven't found anyway to do it. Any ideas? Regards, D.my $db = tie my %h, "DB_File", undef, O_RDWR|O_CREAT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dump In-memory DB_File to disk
by BioLion (Curate) on Oct 06, 2009 at 11:33 UTC | |
by Anonymous Monk on Oct 06, 2009 at 11:43 UTC | |
|
Re: Dump In-memory DB_File to disk
by Anonymous Monk on Oct 06, 2009 at 11:41 UTC |