But my code above return 3 instead of 6. How can we achieve that?# 3 6 my $str = 'GCCGCTGCTGCTG'; my $sbst ='GCTGC'; my $pos = index($str,$sbst);
In reply to How to return last index position of a substring by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |