@hash{'one'} = "123"; @hash{'two'} = "123"; @hash{'three'} = "123"; foreach ($key = keys(%hash)) { print "key is - $key\n"; } #### one two three