From: freeunli@... Date: 2007-06-29T03:40:09+09:00 Subject: Array.join for nested arrays Doing arr = [1, [2, [3, 4], 5], 6] arr.join(',') in Ruby 1.8.6 produces the following string: 1,2,3,4,5,6 Looking at the docs (e.g. http://www.noobkit.com/ruby-array-join), Array.join should work as following: "Returns a string created by converting each element of the array to a string, separated by sep." Doing the following: arr.each do |e| puts e.to_s end produces: 1 2345 6 Thus, arr.join(',') should be: 1, 2345, 6 Am I missing something? How can I do the above?