|P is for Practical|
how do you use the index function on this example?by Anonymous Monk
|on Sep 21, 2015 at 19:40 UTC||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to use the index function and I found this example:
This is very straightforward, BUT, how could one find all occurences of a string that is now known exactly beforehand?
Consider the string:
and say you would like to find all occurences (starting positions and lengths) of the M's substrings.
How do I need to proceed?