From: tho_mica_l Date: 2008-02-04T21:14:57+09:00 Subject: Re: creating a 2d array > x, y = 2, 3 #you get these values from the user > m = [] #initializing m for scope reasons > x.times { m << Array.new( y ) } # adding new arrays to m Or maybe: Array.new(x) {Array.new(y)}