From: "Iñaki Baz Castillo" Date: 2008-04-25T01:30:17+09:00 Subject: Re: Pointer concept in Ruby ? 2008/4/24, Bill Kelly : > However, there is a String#replace method, which may be useful if you're > sure this is what you want to do: > > => ["aaa", "bbb", "ccc"] > > > > > > a1 = array[1] > > > > > > => "bbb" > > > > > > a1.replace "BBB" > > > > > > => "BBB" > > > > > > array[1] > > > > > > => "BBB" Oh, really curious but I don't like it since it's just valid for strings (why??) and it requires variable to be already defined. Isn't there any mehotd more "normal"? something as: a2 = array[2]._something_ a2="QWE" array[2] => "QWE" Thanks a lot. -- Iñaki Baz Castillo