Dec 12, 2007, 10:31 PM
Post #4 of 5
This may work...
Re: [vk.gamer] Handlng Large hash
[In reply to]
tie my %in_dbm, "DB_File", "your.dbm";
%in_memory = %in_dbm;
Depending on the type of DBM you're using, you may need to replace DB_File with a more appropriate module (GDBM_File, NDBM_File, ODBM_File and SDBM_File), and you probably also want to add some error checking.
The downside to this method, however, is that if you update your DBM, your script will not see those changes unless it re-loads the hash, which means more coding to detect when the DBM has been updated or restarting your program.