Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What am I doing wrong????@matches=$string=~/(K|R)/g;<br> foreach $a(@matches) { print index($string, $a)."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: match all instances?
by rhesa (Vicar) on May 27, 2006 at 15:53 UTC | |
|
Re: match all instances?
by Zaxo (Archbishop) on May 27, 2006 at 15:59 UTC | |
by Anonymous Monk on May 27, 2006 at 16:08 UTC | |
|
Re: match all instances?
by TedPride (Priest) on May 27, 2006 at 20:13 UTC |