On 02/03/2010 10:00 PM, Albert Schlef wrote:
> Felix Feelx wrote:
>> That is why [...] (I think) using FasterCSV wouldn't help that much either.
> 
> This CSV library at least parses the file correctly for you. CSV has 
> some quoting rules and merely spliting by "," isn't very robust.

Absolutely agree!  Felix, I believe it is not clear to you what CSV 
really does.  Try this:

require 'csv'

CSV.foreach('pastie-807687.txt') do |row|
   p row
   break if /Total/ =~ row[22]
end

Cheers

	robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/