From: Robert Klemme Date: 2006-11-15T23:20:06+09:00 Subject: Re: Assoc method on large array On 15.11.2006 14:49, gregarican wrote: > I figured out this one glitch. Pilot error on my part. Some values of > this array element were floats while others were strings. I had to > convert the string values to floats for the comparison sort block to > factor everything correctly. That is taken care of. But I still never > found a way around invoking the Array's assoc method on an SQL result > set. But piping the set into a new array isn't the end of the world. It > works and my script does now as well. Thanks for the feedback though! Why don't you let the DB do the selection? Why don't you use a Hash? How did you verify that it's an Array of Arrays? Did you just look at the output of inspect or did you actually invoke #class? I am not sure that you actually found a good solution here. Kind regards robert