# New Ticket Created by Chris Fields # Please include the string: [perl #59586] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=59586 >
Attaching a patch for a partial implementation of the :g or :global modifier with .match. Note that this differs sightly from that envisioned in the specs, where :g is part of the regex; this is something which I think @Larry is still mulling over (I may be able to ask him myself in the next day or two, as he's speaking locally here and is running a perl6 workshop). Also, the List of Matches returned should be converted over to a lazy list when those are implemented. However, this is a start. cjfields$ cat match.p6 my $str = 'ABC123DEF456GHI'; # or :global for $str.match(/<alpha>+/, :global) -> $x { $x.say; $x.WHAT.say; } cjfields$ parrot ~/src/parrot/languages/perl6/perl6.pbc match.p6 ABC Match DEF Match GHI Match chris
match.diff
Description: Binary data