> 
> 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/.