From: dblack@... Date: 2002-11-09T08:48:35+09:00 Subject: Re: Multi-dimensional (like 2) arrays in Ruby Hi -- On Sat, 9 Nov 2002, Gennady F. Bystritsky wrote: > @m = (0 .. @rows).collect { Array.new @cols } You'd want the '...' operator, though, assuming @rows contains the number of rows you want (rather than the 0-based index of the top row). David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav