in reply to how do you use the index function on this example?
Ah, never mind, I found this solution:
Thanks
while($string=~/(M+)/g) { ($start, $end) = ($-[0], $+[0]); print $start."\t".$end."\n"; }
Thanks
|
---|
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 |
In Section
Seekers of Perl Wisdom