From: "Mark J. Reed" Date: 2003-12-05T13:57:04+09:00 Subject: Re: Dumb question to which I ought to know the answer by now On Fri, Dec 05, 2003 at 01:45:36PM +0900, Austin Ziegler wrote: > hash = { :a => 3, :b => 2, :c => 1, :d => 0} > hash.update({ :a => 1, :b => 2, :c => 3 }) I know that, but in this case I have the keys and values in two arrays and want to match them up by position. In other words, I want to do this: keys.each_with_index do |k, i| hash[k] = values[i] end The equivalent of Perl @hash{@keys} = @values. -Mark