From: Tomas Brixi Date: 2001-09-04T16:24:09+09:00 Subject: [ruby-talk:20840] modify hash during iteration Hello I have a question to following piece of code ----------------- h = Hash.new #assign some data h.each do |pair| h[pair[0]] = new_value end ----------------- is this the right way or are there better ways to do this Regards Tom