From: Dot Baiki Date: 2009-09-17T03:53:35+09:00 Subject: Re: FasterCSV.foreach loop Hello again Thanks again for your advice. This is what I have now: csv_data = FCSV.table(input_file) employees_id = csv_data[:id].uniq employees_id.each do |id| puts "ID: #{id}" employees_records = csv_data.select { |row| row["id"] == id } puts employees_records break # just for now end The thing is, no output. Empty. Right now I really don't get it. I am using old software? That's what I use: - ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] - fastercsv (1.5.0, 1.2.3) ** maybe I should deinstall one??? ** This one doesn't give me any output as well. csv_data = FCSV.table(input_file) employees_id = csv_data[:id].uniq employees_records = csv_data.select { |row| row["id"] == 1 } p employees_records Hmmm. Hope you can give me another clue! Regards, Baiki -- Posted via http://www.ruby-forum.com/.