From: Chris Chris Date: 2008-07-04T05:46:00+09:00 Subject: Re: How to duplicate elements in array? >> a = [["ABC", "30", "1"]] > >> a2 = a + a > >> a2[0][1] = "test" > >> => [["ABC", "test", "1"], ["ABC", "test", "1"]] Thanks guys. Yeah, I speak German :-)... Going through that discussion solved it for me after tweaking it a little bit... Changed a = [["ABC", "30", "1"]] TO a = ["ABC", "30", "1"] a2 = [a.dup, a.dup] a2[0][1] = "test" => [["ABC", "test", "1"], ["ABC", "30", "1"]] Chris -- Posted via http://www.ruby-forum.com/.