in reply to hash on memory or disk?
If you want to iterate over a (large) hash in a memory efficient way, use each and a while loop.
Abigail