From: "Peña, Botp" Date: 2007-07-19T17:17:02+09:00 Subject: Re: Newbie looking for help: Determining Gender From: Peter Seebach [mailto:seebs@seebs.net] # >sexCheckH = Hash.new # >sexCheckH = { "m" => "male", # > "f" => "female" # > } # # It seems to me that you have just replaced your empty # Hash.new object with a # brand new object. argggh, i was hoping that the op would catch that first :) while typing code, i was thinking whether showing a hash will complicate the strategy to his looping problem ... so i figure how to type the hash so it looks simple, and it went like... x=Hash.new ... hmmm, no x={} x['m'] = 'male' ... hmmm, no, change mind again... x = { 'm' => 'male', ... } yes next time, i'll just type directly without thinking :)) thanks for the heads up and kind regards -botp