From: seebs@... (Peter Seebach) Date: 2007-06-10T12:17:40+09:00 Subject: Re: Strange behavior of Array In message , "huang zhimin" writes : >I want a multidimensional array with initial value 0, so I create it by >arr = Array.new(3, Array.new(3, 0)) => [[0, 0, 0], [0, 0, 0], [0, 0, >0]] You have now created an array consisting of three copies of the SAME array [0,0,0]. This is a FAQ. -s