Lance Prais wrote:
> 
> I am trying to use the substr() to search a text doc.   The starting place
> is 100.

If you want to _search_ for a string you should be using index(),
rindex() or a regular expression.


> I am trying to test to see if   "Sleeping for 10"  is there.
> 
> This is the code I am trying to use substr($line 100,16)  but is only
                                                  ^
                                             missing comma

> returning "Sleeping f"
> 
> What could I be doing wrong?

Could there be control characters or non-ASCII characters in there
somewhere?



John
-- 
use Perl;
program
fulfillment

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

Reply via email to