From: Greg Willits Date: 2007-10-25T18:49:19+09:00 Subject: Re: puts from #!, but with data structure chrome Stefano Crocco wrote: > Alle gioved狸 25 ottobre 2007, Greg Willits ha scritto: >> Is there a way to run a #! script and cause output using puts (or >> alternative) to actually show an array like ['a', 'b'] instead of just >> ab ? > > Use p instead of puts. puts(obj) calls obj.to_s, while p(obj) calls > p.inspect, > which is what IRB does. > > I hope this helps > > Stefano Ahhh. Perfect. :-) -- gw -- Posted via http://www.ruby-forum.com/.