From: John Smith Date: 2010-09-28T04:47:41+09:00 Subject: copying a matrix. 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 } m2[2][2]=2 p m p m2 -- Posted via http://www.ruby-forum.com/.