|
|
| Think about Loose Coupling | |
| PerlMonks |
with tied hash, 'each' gives key that doesn't 'exists'by hbm (Hermit) |
| on Sep 15, 2010 at 16:25 UTC ( [id://860246]=perlquestion: print w/replies, xml ) | Need Help?? |
|
hbm has asked for the wisdom of the Perl Monks concerning the following question: I have a hash of about 40M keys and undef'd values. It has outgrown RAM, so I've tied it to a file. Now, I'm finding some keys with each that don't match with exists. How can that be?!
Output:
Update: I should mention, this is Perl 5.8.3 and DB_File 1.808. Update: I changed my loop to the following, and killed it after 30 minutes with over 9M keys not existing.
Update: Fixed with DB_File 1.82!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||