in reply to Managing multiple keys in a hash table...

I just don't understand your code - it's pretty hard to read, too, since you didn't use <code> tags - please read the writeup formatting tips.

Also, an indication of what list1, list2, key1 and key2 have to do with the variables in your code would probably help. I would suggest you use variable-names that make some kind of sense.

Also interesting: how (not) to ask a question.