Suppose a code is like this:

array1 = [1,2,3,4,5]
array2 = array1
array2.delete(1)

And the result was:

array2 => [2,3,4,5]
array1 => [2,3,4,5]

How do I make sure the first array stays original after the modification
of second array?

-- 
Posted via http://www.ruby-forum.com/.