I am parsing a csv file and I am unable to end my loop as I want it.

When I run my ruby file, I get this :

feelx@tbiweb:~/public_html$ ruby csv_to_sql.rb
/usr/lib/ruby/1.8/date/format.rb:1055:in `dup': can't dup NilClass
(TypeError)
        from /usr/lib/ruby/1.8/date/format.rb:1055:in `_parse'
        from /usr/lib/ruby/1.8/date.rb:999:in `parse'
        from csv_to_sql.rb:43

Link to my code : http://pastie.org/806415

Thanks in advance.

Felix
-- 
Posted via http://www.ruby-forum.com/.