From: Anthony Eden Date: 2007-09-05T20:45:41+09:00 Subject: Re: Multiple Assignments: Newbie question On 9/5/07, Z T wrote: > When I run my program: > > arg1="Ruby", arg2="Rails", arg3="Rails" > puts "#{arg1}, #{arg2}, #{arg3}" > > Why is the output as follow: > RubyRailsRails, Rails, Rails > > What is the reason for this output? Thanks in advance. > The comma is for separating array items. If you were to write: arg1 = "Ruby","Rails","Rails" You'd see that arg1 is an array with those values. What you want is: arg1 ="Ruby"; arg2 = "Rails"; arg3 = "Rails" Or something along those lines. V/r Anthony -- Cell: 808 782-5046 Cell: 321 505-0025 Current Location: Melbourne, FL