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 5621797 commit 4488e4eCopy full SHA for 4488e4e
doc/Language/5to6-nutshell.pod6
@@ -751,6 +751,27 @@ loop using the C<.lines> method.
751
while (<IN_FH>) { } # Perl 5
752
for $IN_FH.lines { } # Perl 6
753
754
+=head3 C<do> C<while>/C<until>
755
+
756
+ do {
757
+ ...
758
+ } while $x < 10;
759
760
761
762
+ } until $x >= 10;
763
764
+The construct is still present, but C<do> was renamed to C<repeat>, to better
765
+represent what the construct does:
766
767
+ repeat {
768
769
770
771
772
773
774
775
=head3 C<for> C<foreach>
776
777
Note first this common misunderstanding about the C<for> and C<foreach>
0 commit comments