From: Brian Candler Date: 2010-09-28T15:05:54+09:00 Subject: Re: copying a matrix. John Smith wrote: > How can I create an array copy that > does not reference the same object... > > I have tried this without luck. > > m2 = m.map { |e| e } Try: m2 = m.map { |e| e.dup } -- Posted via http://www.ruby-forum.com/.