It was already documented that when scanning for the end of the string, backslashes escaping the closing delimiter are being eliminated; but this is true for backslashes escaping backslashes as well. This makes that C<< '.\.' eq '.\\.' >>. (Pointed out by Mithaldu)
It's kind of late in the release process to change how $/ = \N works for unicode streams, briefly document how broken it is and let the user know it may change.
This branch represents more of Brian Fraser’s patches from <https://github.com/Hugmeir/gsoc-pad-utf8-safety/commits/tokemess>, that are referenced by perl #107008. This is not all of it, but all I’ve merged and tested so far.
This was added in the previous commit, but was unnecessary, as it is not used anywhere and is not part of the public API.
Also, indent the epigraph of Perl 5.15.9, to prevent the text to be formatted.
And added a line to the module upgrades section.
While checking into an unrelated issue I realized "last" might not be reset under certain circumstances. Although I could not find a way to make anything bad happen from perl, I decided to fix it, at worst we waste a few CPU cycles setting "last" to NULL more often than we should.