From: Stefano Crocco Date: 2008-06-08T23:48:27+09:00 Subject: Re: Search File Contents On Sunday 08 June 2008, Andy Dbest wrote: > Stefano Crocco wrote: > > On Sunday 08 June 2008, Andy Dbest wrote: > > If assiging week_num a value inside the method makes the code work, I'd > > say > > the problem is in the argument which is passed to the method. Have you > > tried > > to put a > > > > puts week_num > > > > at the beginning of the method, to see whether the argument you get is > > the one > > you expect? > > > > Stefano > > I tried the puts line, just inside the method and it does return '1.' > for me. It kind of annoying... Can you post a sample of the file you're searching in? This way, I can try your code myself and see what's going on. Stefano