Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to return last index position of a substring
by graff (Chancellor) on Aug 22, 2007 at 07:48 UTC |