From: Mahen Surinam Date: 2007-09-14T02:07:01+09:00 Subject: Re: undefined method `+' for nil:NilClass (NoMeth Gareth Adams wrote: > Mahen Surinam gmail.com> writes: >> >> [.. snip ..] > > The error you were getting is because $Oldtext3 is not the same as > $OldText3 > > However, all of the previous replies highlight other issues which you > should > address in your code - the biggest of which (in my opinion) is using > globals for > a task which only ever stays in one scope. > > Gareth Am using this piece of code. very effective. I;ve tweaked it a little. By the way. I've kept it running for some minute now and I saw in taksmanager that Ruby was consuming more thatn 200 megabytes, then sharply decreases to 70 mega then again to 200+ . I also saw that my pagefile usage kept on increasing. is this a issues with the garbase collector? am using ruby 1.8.6 -- Posted via http://www.ruby-forum.com/.