From b620a9f2859aa21d56e1b18ce0c9d3752abaadb0 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 19 Oct 2020 15:57:37 +1100 Subject: \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) --- pod/perldiag.pod | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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. =item Label not found for "last %s" -- cgit v1.2.1