in reply to Get the Keys in the Hash

If you want the keys to a hash, use

keys %my_hash

Look at perldoc -f keys for the details.