From: James Edward Gray II Date: 2009-09-17T04:48:02+09:00 Subject: Re: FasterCSV.foreach loop On Sep 16, 2009, at 2:31 PM, Dot Baiki wrote: > I guess I need your help once again. > > I need "employees_records" in another class (want to create ODF files > per employee). Should I try to convert this variable into a hash or > should I try to access certain fields within "employees_records" using > one of your techniques? How can I access one cell within > "employees_records" or how can I change it to a proper hash (I > really do > prefer arrays) How's this? employees_records = csv_data.select { |row| row[:id] == 1 }. map { |row| row.to_hash } James Edward Gray II