in reply to Getting keys/values from a referenced hash

How are you calling each/keys/values? If your hash is a reference, it should be something like keys %$results.

You could also do :  my %real_hash = %$results which will attempt to copy your hash, but will not do a deep copy. If you need a better copy, you can use the Clone module to do that.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important