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