From: Brian Candler Date: 2010-01-01T00:29:49+09:00 Subject: Re: "Inconsistency" with display/existence of "\" Aldric Giacomoni wrote: > I was looking in the wrong place. > As it turns out, this happens: > > ["haha", "baba", "kate"].each do |x| > x.gsub! "a", "i" > end > > actually changes the array - so my save code was modifying the data I > had opened. Glad it's sorted. Technically: the above code does not change the array. But it does modify the objects which the array contains. -- Posted via http://www.ruby-forum.com/.