S05:792 mentions this case explicitly:

    ^^ always matches the beginning of the string and after
    any \n that is not the final character in the string.

So, rakudo is performing exactly as specced.

I suspect the reason behind the spec is so that slurped \n-terminated 
files (i.e., the vast majority) aren't treated as having an extra blank 
line after the final \n.

Rejecting ticket,

Pm


Reply via email to