From: "Robert K." Date: 2011-07-15T16:08:28+09:00 Subject: Re: array overwrite question Hans Mackowiak wrote in post #1010878: > like Brian says: > > cc2 = Marshal.load(Marshal.dump(aa2)) In this particular case #map also works because we know the depth to be two levels: arr = [[1,2], [3,4], [5,6]] copy = arr.map {|a| a.dup} Cheers robert -- Posted via http://www.ruby-forum.com/.