From: Dave Thomas Date: 2001-10-31T12:36:01+09:00 Subject: [ruby-talk:23907] Re: References in methods "Ralph Mason" writes: > It appears that altering a string in a method does not always alter > the passed in string. Could someone please explain this behavior. > > def func2(x) > x+="X" > end This is the same as x = x + "X". It generates a brand new string. x << "X" appends to the existing one. Regards Dave