From: Harry Kakueki Date: 2011-09-14T00:06:48+09:00 Subject: Re: Iterate Array and (pretty)print > You don't even need the join. > > irb(main):001:0> @hosts = ["test1", "test2", "test3", "test4"] > => ["test1", "test2", "test3", "test4"] > irb(main):002:0> puts @hosts > test1 > test2 > test3 > test4 > => nil > irb(main):003:0> > > Cheers > > robert > But, he wants it to be a string. print @hosts.map{|x| x + "\n"}.join Harry