in reply to MLDBM and Memory
foreach my $key (keys %hash_db) # creates a list in memory # containing all key strings # vs. while ( my ($key, $val) = each %hash_db ) # iterates over the DB entries one at a time # and doesn't hold all keys in memory at once
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: MLDBM and Memory
by NormalPerson (Initiate) on Jun 02, 2004 at 06:18 UTC |