This seems to work now:
$ perl6 -e 'say "foo foo foo".subst(/foo/, "bar", :nth(-Inf));'
Attempt to retrieve before :1st match -- :nth(-Inf)
in block at -e:1
skids++ added tests with commit e502eaf9.
For some reason a few of those tests still fail (do not die) on rakudo.jvm.
I'll flag this ti
# New Ticket Created by Alex Jakimenko
# Please include the string: [perl #125815]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125815 >
You can put any negative number (even -Inf) and it will not die:
m: say 'foo foo foo'