You seem to have confused arrays and hashes. Arrays don't have keys.(edit: irrelevant, I misread your code).
In reply to Re: Help on Hashes by muba in thread Help on Hashes by Anonymous Monk