in reply to Consistent order of (keys %hash)?

As others have pointed out, you cannot guarentee order from keys alone. Of course, except for very large hashes, @list = sort keys %hash; will do exactly what you need, portable on perl versions and OSes. Of course, if you have a very large hash to make sorting prohibative, and you are worried about order, you probably have the wrong data structure (You probably want a list of hashes).

-----------------------------------------------------
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