HTHmy $str="0123456Foo012345"; my $pos=7; my $srch="Foo"; print "Its there all right!" if index($str,$srch,$pos)==$pos;
Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.
In reply to Re: substring exists at particular postion?
by demerphq
in thread substring exists at particular postion?
by redemption
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |