original = [[1, 2], [3, 4]] copy = original.dup # inner arrays are shared between the two copy[0] << 99 p original
the top level is copied only