From: Ryan Victory Date: 2013-01-30T07:04:24+09:00 Subject: Re: ruby array to list Sure, with some simple regexes, try out: puts myarray.inspect.to_s.sub(/^\[/, "").sub(/\]$/, "").gsub('"', "") But to be serious, you're looking for the "join" method, like this: puts myarray.join(", ") -Ryan Victory On 1/29/13 3:53 PM, robert lengu wrote: > Hi > I dont know if i can do this or is there is any way to implement the > logic or i am just being stupid... > > > suppose, if i do this > > p myarray > > it give me > > ["test", "test3", "test4", "test5"] > > but is there any way to make this output like bellow > > test, test3, test4, test5 > I > ?? > any help will be really good .. >