summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2020-10-19 15:57:37 +1100
committerSteve Hay <steve.m.hay@googlemail.com>2021-01-06 17:40:43 +0000
commitb620a9f2859aa21d56e1b18ce0c9d3752abaadb0 (patch)
tree38d3f4ad5fd9ca2e77bbdfd501d2c4ea670d8929
parent57edf1d256c8267868c4c9c44962dd4721d8c2b5 (diff)
downloadperl-b620a9f2859aa21d56e1b18ce0c9d3752abaadb0.tar.gz
\K in lookaround might become permitted in the future
It was disallowed because: - it was breaking things (GH #14638) - at the time, no-one had the tuits and knowledge to select non-buggy semantics and implement them. (cherry picked from commit 55afc78396d86da97ab07c25295b00c9a300f081)
-rw-r--r--pod/perldiag.pod5
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 2b2df17a1f..d1a6a7ff08 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -3289,7 +3289,10 @@ line. See L<perlrun|perlrun/-i[extension]> for more details.
=item \K not permitted in lookahead/lookbehind in regex; marked by <-- HERE in m/%s/
(F) Your regular expression used C<\K> in a lookhead or lookbehind
-assertion, which isn't permitted.
+assertion, which currently isn't permitted.
+
+This may change in the future, see L<Support \K in
+lookarounds|https://github.com/Perl/perl5/issues/18134>.
=item Label not found for "last %s"