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