Perl Monk, Perl Meditation | |
PerlMonks |
Re: Perl6 global regex matchingby moritz (Cardinal) |
on Oct 20, 2015 at 10:29 UTC ( [id://1145405]=note: print w/replies, xml ) | Need Help?? |
There's not much use in doing a global regex match with an anchored regex. Furthermore, a global regex match returns a list of matches, so use a for-loop to iterate over them:
Output:
In Section
Seekers of Perl Wisdom
|
|