Don't ask to ask, just ask | |
PerlMonks |
Problem in "index" function in recognizing repeating substringsby monkfan (Curate) |
on Sep 02, 2005 at 09:30 UTC ( [id://488585]=perlquestion: print w/replies, xml ) | Need Help?? |
monkfan has asked for the wisdom of the Perl Monks concerning the following question:
Most revered monks, The built-in index function seems to be able to recognize only the first substring given two identical substrings from a string. My code below: Returns: How can I overcome this problem such that the index function can recognize the second substrings in the correct position? Returning this instead:
Regards, Edward
Back to
Seekers of Perl Wisdom
|
|