From: botp Date: 2010-07-13T17:56:58+09:00 Subject: Re: I'm trying to get the keys, but why values appear? On Tue, Jul 13, 2010 at 4:40 PM, Abder-rahman Ali wrote: > What am I missing in the script? the fun :) > personal_information.each {|key| p key} ["Name", "Abder-Rahman Ali"] ["Age", "26"] > personal_information.each {|key| p key.first} "Name" "Age" > personal_information.each_key {|key| p key} "Name" "Age" > personal_information.each_value {|key| p key} "Abder-Rahman Ali" "26" > personal_information.each {|key,value| p key} "Name" "Age" > personal_information.each {|key,value| p value} "Abder-Rahman Ali" "26" kind regards -botp