Skip to content

Commit 0209f74

Browse files
committed
perldelta for GH #22412 / d893540
1 parent d893540 commit 0209f74

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pod/perldelta.pod

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,26 @@ manager will later use a regex to expand these into links.
369369

370370
=item *
371371

372+
Compound assignment operators return lvalues that can be further modified:
373+
374+
($x &= $y) += $z;
375+
# Equivalent to:
376+
# $x &= $y;
377+
# $x += $z;
378+
379+
However, the separate numeric/string bitwise operators provided by L<the
380+
C<bitwise> feature|feature/The 'bitwise' feature>, C<< &= ^= |= &.= ^.= |.= >>,
381+
did not do so:
382+
383+
use feature qw(bitwise);
384+
($x &= $y) += $z;
385+
# Used to die:
386+
# Can't modify numeric bitwise and (&) in addition (+) at ...
387+
388+
This has been corrected. [GH #22412]
389+
390+
=item *
391+
372392
XXX
373393

374394
=back

0 commit comments

Comments
 (0)