From: Drew Olson Date: 2006-09-21T04:24:49+09:00 Subject: Code Block Error The following code works fine: counter = 0; semi_common_tbls.keys.each do |set| semi_common_tbls[set].each do |table| outfile << ["CommonTables"+counter.to_s,table] end end However, when I change it like so: counter = 0; semi_common_tbls.keys.each do |set| counter++ semi_common_tbls[set].each do |table| outfile << ["CommonTables"+counter.to_s,table] end end I get the following error: tablebuildv2.rb:46: undefined method `+@' for ["table1", "table5"]:Array (NoMethodError) from tablebuildv2.rb:42:in `each' from tablebuildv2.rb:42 What gives? Thanks, Drew -- Posted via http://www.ruby-forum.com/.