From: Brian Candler Date: 2009-01-20T18:02:41+09:00 Subject: Re: is it possible to override a 'read only' environmental variable like $" ? timr wrote: > I am trying to write a method to give the full paths of all files > loaded into a program when a require statement is executed. > I would like to be able to get the same result each time a "require > 'file'" statement is executed. To do so, I need to get the $" > back to the state it was in prior to the require command being > executed. But alas it is read only and does not allow me to redefine > it. Try Array#replace irb(main):002:0> $".replace([]) => [] irb(main):003:0> $" => [] -- Posted via http://www.ruby-forum.com/.