From: Marco Guiseppe Date: 2007-01-27T10:00:39+09:00 Subject: String.insert newbie question Hello, I've only been checking out Ruby for a couple of days, but today I came across this problem. If I do this: #!/usr/bin/env ruby -w string1 = "abc" string2 = string1 string2.insert(-1, "def") puts string1 puts string2 Then the result is: abcdef abcdef How come string1 gets changed?!? Thanks, Marco -- Posted via http://www.ruby-forum.com/.