From: Drew Olson Date: 2007-01-23T03:23:46+09:00 Subject: Re: Silly Array Question Mike Keller wrote: > This will probably be a silly question, but I've been searching for > quite awhile now and have been unable to locate how to do this. > > I have two arrays which come from two different files. One is a CSV > file and the other just a list in a text document. Assuming that the .csv file is coming in as a 2D array and that the text document is a simple array, this should work: csv_array.each_with_index do |row,index| row << text_array[index] end -- Posted via http://www.ruby-forum.com/.