From: phlip Date: 2008-07-04T05:21:54+09:00 Subject: Re: How to duplicate elements in array? Chris Chris wrote: > a = [["ABC", "30", "1"]] > a2 = a + a > a2[0][1] = "test" > => [["ABC", "test", "1"], ["ABC", "test", "1"]] a is an object, not a value. a + a sez "make an array containing two links to this object". Changing one object changes the other. You need a2 = a.dup + a.clone I forget the difference between .dup and .clone, though... (-: -- Phlip