From: Victor Reyes Date: 2007-10-20T04:54:06+09:00 Subject: Re: 2 dimensional array ------=_Part_4520_29500877.1192823646575 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry guys, I am very slow. In conclusion. how would the following be represented in Ruby? It is a 3x3 matrix. 11 76 -34 31 -66 71 -1 63 34 Thank you Victor On 10/17/07, Shuaib Zahda wrote: > > Dear all > Thanks for the help, I managed to do it using Mr. Michael > Bevilacqua-Linn way. and it works > > just to share with u the lines of code that make the two - dimensional > array. > note that the number of columns can be extended. > > columns = Array.new() > columns << Array.new > columns[i][0] = col[0] > columns[i][1] = col[1] > > Regarding the multidimensional hash what i meant is hash of hashes. > Thanks > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_4520_29500877.1192823646575--