diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 95d0c3b26b2ee..4784f47b53b72 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -55,6 +55,17 @@ C<-M> switch and the name of the module after it. This matches the existing behaviour of the C<-I> option. +=head2 Restrictions to C declarations + +In Perl 5.36, a deprecation warning was added when downgrading a +C declaration from one above version 5.11, to below. This has +now been made a fatal error. + +Additionally, it is now a fatal error to issue a subsequent C +declaration when another is in scope, when either version is 5.39 or above. +This is to avoid complications surrounding imported lexical functions from +L. + =head1 Security XXX Any security-related notices go here. In particular, any security