in reply to tying a hash from a big dictionary
If your huge dictionary will not fit in memory then perhaps you should look at a disk-based DBM, perhaps Berkeley DB.
Cheers,
JohnGG