From: Joel Pearson Date: 2013-04-19T18:05:25+09:00 Subject: Re: "gets" overwrites string - why does this happen? windwiny wrote in post #1106260: > using > filename = $*.dup > > because > a = [] > b = a > a.__id__ == b.__id__ > > > 2013/4/19 Philip Rhoades Ah yes, in this case gets is modifying $* and therefore filename as well. Please disregard my previous answer, I didn't know about that behaviour of gets :) -- Posted via http://www.ruby-forum.com/.