From: Adam Akhtar Date: 2008-02-06T06:34:39+09:00 Subject: Re: creating a 2d array > > Todd's suggestion will work, but I prefer: > rows, cols = 2,3 > mat = Array.new(rows) { Array.new(cols) } > > Cameron Why do you use the {}? Arent they used when your creating hashes. -- Posted via http://www.ruby-forum.com/.