in reply to Assignment to keys()

The docs for keys says it best. When you use keys as an lvalue, you are changing the memory allocation for the hash.

-HZ