in reply to Large file, multi dimensional hash - out of memory
Your code isn't doing any useful summarizing as it reads, and that's the key to staying within a reasonable memory footprint without using a database.