Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!newsfeed.in-ulm.de!not-for-mail From: Christian Neukirchen Newsgroups: comp.lang.ruby Subject: Re: Need help with something very simple Date: Thu, 21 Mar 2013 17:55:30 +0100 Organization: [ posted via ] IN-Ulm Lines: 17 Sender: chris@juno Message-ID: <87a9pwd75p.fsf@gmail.com> References: <3e2ec553-ee7d-4625-8e2d-4d2687a165ad@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain X-Trace: news.in-ulm.de B0E82A6059BF9604877FBFB7F41113C4 In-Reply-To: <3e2ec553-ee7d-4625-8e2d-4d2687a165ad@googlegroups.com> (Jatin Ganhotra's message of "Thu, 21 Mar 2013 08:39:32 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Xref: csiph.com comp.lang.ruby:6774 Jatin Ganhotra writes: > Hi, > > 1.9.3p194 :005 > array = [ 1, 2] > => [1, 2] > 1.9.3p194 :007 > puts "Array when output in \"\" is #{array}" > Array when output in "" is [1, 2] > => nil >> puts "Array when output in \"\" is (#{array.join(', ')})" > Can I do something, so that the output is: > Array when output in "" is (1, 2) -- Christian Neukirchen http://chneukirchen.org