From: Daniel Harple Date: 2006-03-07T02:26:54+09:00 Subject: Re: Ruby Array -> String Conversion Issue On Mar 6, 2006, at 5:57 PM, Nathan O. wrote: > This code generates the complaint that "part" is an array, and thus > cannot be converted to a string. How do I iterate over each item in > that > array of address data? I see no problem with that code, except I would write it as: %w{addr1 addr2 city state zip country}.each do |part| puts %{} end You don't have another local variable named part, do you? When you convert an array to a string, all the elements just get mashed together: %w{foo bar baz}.to_s -> "foobarbaz" -- Daniel