From 1ed9ee93bbd9017a5d27631254f65a3d2e98e997 Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Fri, 26 Jul 2024 07:49:15 +0200 Subject: [PATCH] perldelta for GH #22412 / d8935409c9 --- pod/perldelta.pod | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 136c8a02c8a4..89b7430cd1b6 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -369,6 +369,26 @@ manager will later use a regex to expand these into links. =item * +Compound assignment operators return lvalues that can be further modified: + + ($x &= $y) += $z; + # Equivalent to: + # $x &= $y; + # $x += $z; + +However, the separate numeric/string bitwise operators provided by L feature|feature/The 'bitwise' feature>, C<< &= ^= |= &.= ^.= |.= >>, +did not do so: + + use feature qw(bitwise); + ($x &= $y) += $z; + # Used to die: + # Can't modify numeric bitwise and (&) in addition (+) at ... + +This has been corrected. [GH #22412] + +=item * + XXX =back