diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 3111cf685f..495b14061d 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -198,6 +198,22 @@ and L XXX L +=item * + +L + +(F) A C, C or C keyword was used with the exception variable in +a C block: + + try { ... } + catch (my $e) { ... } + # or catch (our $e) { ... } + # or catch (state $e) { ... } + +This is not valid syntax. C takes a bare variable name, which is +automatically lexically declared. +[GH #23222] + =back =head3 New Warnings