# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61206] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61206 >
Rakudo r33613 doesn't seem to recognize ranges in :x() pairs as such. The specced semantics are that :x($a..$b) should mean "match between $a and $b times (neither more nor less)". $ perl6 -e 'say "foofoofoo".subst("foo", "bar", :x(1..2))' # right barbarfoo $ perl6 -e 'say "foofoofoo".subst("foo", "bar", :x(5..6))' $ wrong barbarfoo By the second example, it seems to me that what's happening is that the range is evaluated as a scalar representing its length.