![]() |
|
Do you know where your variables are? | |
PerlMonks |
how do you use the index function on this example?by Anonymous Monk |
on Sep 21, 2015 at 19:40 UTC ( #1142662=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, 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?
Back to
Seekers of Perl Wisdom
|
|