Hi there,

I wrote a simple program to enumerate an array. The code is as below:
class Test
 def initialize
   @x=[0,1,2]
   @tem=@x
   @y=@x
   y=del(@tem)
 printf "#{@x}\n"
 printf "#{@y}\n"
          end
  def del(x)
 x.delete_at(0)
 return x
 end
end
a=Test.new

But the output is :
12
12
Why  @x and @y are changed? Is there anyone can tell me how to deal with
this problem?