From: Jean-Julien Fleck Date: 2010-07-18T16:29:07+09:00 Subject: Re: Search Array Hello Chad, > The 2 dimensional array is what I need but I am not sure how to search > it. If you want to get the index couple, you could do something like this: def index_biarray(biarray,obj) index1 = biarray.index {|a| a.include?(obj)} index2 = biarray[index1].index(obj) return index1,index2 end and to check the behavior: time = [["valuea","a",100],["valueb","b",200],["valuec","c",300]] puts index_biarray(time,"valuea").join(',') puts index_biarray(time,200).join(',') puts index_biarray(time,'c').join(',') Cheers, -- JJ Fleck PCSI1 Lycée Kléber