in reply to how do you use the index function on this example?
while($string=~/(M+)/g) { ($start, $end) = ($-[0], $+[0]); print $start."\t".$end."\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: how do you use the index function on this example?
by AnomalousMonk (Archbishop) on Sep 21, 2015 at 22:12 UTC |