File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -1166,14 +1166,42 @@ well, so the are also checked against the endpoint:
1166
1166
1167
1167
= head1 List Prefix Precedence
1168
1168
1169
- = head2 =
1169
+ = head2 infix =
1170
1170
1171
1171
List assignment. Its exact semantics are left to the container type on the
1172
1172
left-hand side. See L < Array > and L < Hash > for common cases.
1173
1173
1174
1174
The distinction between item assignment and list assignment is determined by
1175
1175
the parser depending on the syntax of the left-hand side.
1176
1176
1177
+ = head2 infix :=
1178
+
1179
+ Binding. Whereas C < $x = $y > puts the value in C < $y > into C < $x > , C < $x :=
1180
+ $y > makes C < $x > and C < $y > the same thing.
1181
+
1182
+ for code :allow<B L>
1183
+ my $a = 42;
1184
+ my $b B < = > $a;
1185
+ $bL < ++ > ;
1186
+ say $a;
1187
+
1188
+ This will output 42, because C < $a > and C < $b > both contained the number
1189
+ C < 42 > , but the L < containers|/language/containters.html#Binding > were
1190
+ different.
1191
+
1192
+ for code :allow<B L>
1193
+ my $a = 42;
1194
+ my $b B < := > $a;
1195
+ $bL < ++ > ;
1196
+ say $a;
1197
+
1198
+ This will output 43, since C < $b > and C < $a > both represented the same
1199
+ object.
1200
+
1201
+ = head2 infix ::=
1202
+
1203
+ Read-only binding. See L < C < infix := > |:=> .
1204
+
1177
1205
= head2 listop ...
1178
1206
1179
1207
The I < yada, yada, yada > operator or I < stub > operator. If it is the only
You can’t perform that action at this time.
0 commit comments