ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved