What *exactly* do you see from these two lines? (Copy-paste it please. 
You can XXX out the names and phone numbers but please don't change 
anything else)

>>     puts "bname=#{bname.inspect}"
>>     puts "phone=#{phone.inspect}"

The reason: I'm guessing that bname and phone may be arrays, not single 
strings. Is that the case? If so you can iterate over the arrays when 
writing the CSV.

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