From: Robert Klemme Date: 2010-10-27T20:59:51+09:00 Subject: Re: Extraction of single subarrays from multidimensional array On Wed, Oct 27, 2010 at 1:10 PM, Maurizio Cirilli wrote: > Sorry for my bad explanation, in my case I actually know how many > columns are in md-array > i.e how many sub-arrays are to be extracted because I read them as > backtraslated aminocids > from a gene database but this number can change from case to case. So > to make my code of > general use I have to take in consideration this "variable" otherways > I have to change by hand > this number every time I run the program. In the example I provided > this number is 3 but this > number of subarrays can vary. In this respect I wrote "unknown" > dimension. Then why don't you just iterate the outermost Array and be done? robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/