From: Chris Chris Date: 2008-09-22T22:02:33+09:00 Subject: Merging two arrays Hi, in Ruby, I have two arrays: products = Array.new products << ["Amazon",121212,"Harry Potter"] products << ["Amazon",242424,"John Grisham"] products << ["Amazon",353535,"Michael Crichton"] links = Array.new links << [121212,"www.amazon.com/abc"] links << [242424,"www.amazon.com/johngrisham"] links << [353535,"www.amazon.com/somelink"] I would like to merge these two arrays. The article number is to be the identifier. Thus, I would like an array like this as the result: ["Amazon",121212,"Harry Potter","www.amazon.com/abc"] Any help greatly appreciated. Cheers, Chris -- Posted via http://www.ruby-forum.com/.