From: Just Another Victim of the Ambient Morality Date: 2007-11-20T00:00:04+09:00 Subject: Re: Break a recursive loop "Alvaro Perez" wrote in message news:eca08c6514869f02f906f4b2f2afaa26@ruby-forum.com... > > That last works fine. The problem is that I need an instance variable > @found reset to nil every time I start a new search (which I think is > not very elegant). But it works thought. Which "last" was that? I'm glad you've solved your problem. I'm a little concerned with your confessed use of "instance variable @found." Why is "found" an instance variable? It should probably be a local variable and, thus, you'd never have to worry about "resetting" it every time...