Re: wired result
by Che other posts by this author
May 8 2008 2:12PM messages near this date
Re: wired result
|
Re: wired result
On May 9, 4:31Â am, Cheyne Li <happy.go.lucky....@[...].com> wrote:
> Sorry, I wasn't finish when I mistakely posted it.
>
> I tested
> Â Â Â Â Â i=0
> Â Â Â Â Â line.scan(fkey){|x|i=i+1}
> Â Â Â Â Â puts i
> Â Â Â Â Â if i>0
> Â Â Â Â Â Â puts "Found match...\n\r"
> Â Â Â Â Â end
>
> in other file by assgined fkey and line. it worked
>
> but the function itself couldn't find match at all. I have no idea
> what's wrong with it. Is there anyone can help me out? Thanks a lot
> --
> Posted viahttp://www.ruby-forum.com/.
This method actually .. works. Check the values of ftarget and fkey
you use, and also check if it returned falsely by ftest.
Thread:
Cheyne Li
Cheyne Li
Che
Michael Linfield
Cheyne Li
|