Skip to content

Commit

Permalink
perldelta for GH #22412 / d893540
Browse files Browse the repository at this point in the history
  • Loading branch information
mauke committed Jul 26, 2024
1 parent d893540 commit 1ed9ee9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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<the
C<bitwise> 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
Expand Down

0 comments on commit 1ed9ee9

Please sign in to comment.