From: Ryan Davis on

On Apr 9, 2010, at 15:25 , Peter Miller wrote:

> next if line.chomp.empty? # skip empty lines

you might want line.strip.empty? if you encounter errant whitespace in your data file.