File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ I<Deleting an element in a hash>
608
608
609
609
Mostly unchanged; parens around the conditions are now optional, but if
610
610
used, must not immediately follow the keyword, or it will be taken as a function
611
- call instead. Binding the conditional expression to a value is also a little different:
611
+ call instead. Binding the conditional expression to a variable is also a little different:
612
612
613
613
if (my $x = dostuff()) {...} # Perl 5
614
614
if dostuff() -> $x {...} # Perl 6
@@ -631,7 +631,7 @@ See also the warnings on the smart-match op above.
631
631
632
632
Mostly unchanged; parens around the conditions are now optional, but if
633
633
used, must not immediately follow the keyword, or it will be taken as a function
634
- call instead. Binding the conditional expression to a value is also a little different:
634
+ call instead. Binding the conditional expression to a variable is also a little different:
635
635
636
636
while (my $x = dostuff()) {...} # Perl 5
637
637
while dostuff() -> $x {...} # Perl 6
You can’t perform that action at this time.
0 commit comments