# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61204] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61204 >
Rakudo r33613 treats the :x($n) adverb as "up to $n matches", not (as specced) "exactly $n matches". $ perl6 -e 'say "foofoofoo".subst("foo", "bar", :x(3))' # right barbarbar $ perl6 -e 'say "foofoofoo".subst("foo", "bar", :x(4))' # wrong barbarbar