From: John Maclean Date: 2006-02-06T20:16:56+09:00 Subject: Adding user input to a hash Chaps, Say you've got an hash that you are using to capturing user input.... nearly there:- #!/usr/bin/ruby -w def testwrite ask_list = { 'Your name' => 'Nil', 'Your dob' => 'Nil', } ask_list.each_key { |z| puts "#{z} : " user_input = gets.chomp if user_input.chomp! != "qq" ask_list.each_value = user_input # this line don't work end } end testwrite -- John Maclean MSc (DIC) 07739 171 531