From: dwight schrute Date: 2011-09-14T00:04:28+09:00 Subject: Re: Iterate Array and (pretty)print Except, I need to put the output into a string. When I use the to_s method, I end up with square brackets and quotes: 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> puts @hosts.to_s ["test1", "test2", "test3", "test4"] => nil -- Posted via http://www.ruby-forum.com/.