Use index (preldoc -f index).
index ($str_from_file, $search_string);
This will return a -1 if $search_string is not present in $str_from_file.

hth,
Sudarsan

> How can I read a line from a file, and judge whether
> this line include some substr?
> Now I only can open(HANDLE,"<XXXXX");
> then how should I do?
>
> BTW,while(<>) is used for end of file or end of a line?
>
> _________________________________________________________
> Do You Yahoo!? 登录免费雅虎电邮! http://mail.yahoo.com.cn
>
> <font color=#6666FF>无聊?郁闷?高兴?没理由?都来聊天吧!</font>——
> 雅虎全新聊天室! http://cn.chat.yahoo.com/c/roomlist.html
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to