N
Nathan Sharkey
Hi,
I've searched google and these forums but can't find anything for this
error i get.
code in a file called test.rb
-----------------------------
require 'csv'
CSV::Reader.parse(File.open('stuff.csv', 'rb')) do |row|
p row
break if !row[0].is_null && row[0].data == 'stop'
end
------------------------------
ruby test.rb # gives an error
NameError: uninitialized constant CSV::Reader
from (irb):8
from /usr/local/bin/irb:12:in `<main>'
i get the same error when trying this in irb
any ideas??
Riga
I've searched google and these forums but can't find anything for this
error i get.
code in a file called test.rb
-----------------------------
require 'csv'
CSV::Reader.parse(File.open('stuff.csv', 'rb')) do |row|
p row
break if !row[0].is_null && row[0].data == 'stop'
end
------------------------------
ruby test.rb # gives an error
NameError: uninitialized constant CSV::Reader
from (irb):8
from /usr/local/bin/irb:12:in `<main>'
i get the same error when trying this in irb
any ideas??
Riga