We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b015b24 commit 8e543e3Copy full SHA for 8e543e3
doc/Language/operators.pod
@@ -110,7 +110,25 @@ L</language/functions#Defining_Operators>.
110
=head1 Meta Operators
111
112
=head2 Assignment Operators
113
-TODO
+
114
+Most operators can be combined with the assignment operator to modify a
115
+value and apply the result to a container in one go. Containers will be
116
+autovivified if possible.
117
118
+ my $a = 32;
119
+ $a += 10; # 42
120
121
+ my $a = 3;
122
+ $a min= 5; # still 3
123
+ $a min= 2; # 2
124
125
+Z<blocked by #63642 my @a = 1,2; @a ,= 3,4;>
126
127
+Although not strictly operators, methods can be used in the same fashion.
128
129
+ my SomeClass $a .= new;
130
+ my $a = 3.14;
131
+ $a .= Int; # 3
132
133
=head2 Negated Relational Operators
134
TODO
0 commit comments