in reply to substring exists at particular postion?
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.
|
---|