From: Arihan Sinha Date: 2011-02-07T20:47:45+09:00 Subject: making hash key from arrays Hi All, I've two arrays, keys = [300,300,301,301,301,302,302] values = [1, 2, 1, 3, 4, 3, 4] both the arrays have equal size. I need to create a hask hsh = {"300" =>["1","2"],"301" => ["1","3","4"],"302"=>["3","4"]} Could any one please put the ruby code for this. Cheers A -- Posted via http://www.ruby-forum.com/.