From: Jason Lillywhite Date: 2009-03-12T14:40:27+09:00 Subject: change (and update) values of hash how would I do stuff to each value of a hash and return a modified hash? h = {"a"=> 3, "b"=> 5} multiply each value by 2 and return h = {"a"=> 6, "b"=> 10} this does what I need but does not modify the hash h.each {|k,v| h[k]*2} -- Posted via http://www.ruby-forum.com/.