Re: string checks

2001-08-23 Thread Michael Fowler
On Thu, Aug 23, 2001 at 06:10:48PM -0500, [EMAIL PROTECTED] wrote: > What is the best way in Perl to do the following? Define best. Is it fastest? Most readable? Most clever? > Check $string to see if the following path is found /this is right/ > If found anywhere in the string return 1, if

string checks

2001-08-23 Thread Robert_Collins
What is the best way in Perl to do the following? Check $string to see if the following path is found /this is right/ If found anywhere in the string return 1, if not return 0. The whole pattern must be found just like written. Robert ( Kent ) Collins: IBM Certified Solutions Expert Cell Pho