Skip to content

Commit

Permalink
Document return value of while/repeat loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
skids committed Dec 25, 2015
1 parent 9edcf11 commit 6e322dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/Language/control.pod
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ $x++ while $x < 12
Also see C<repeat/while> and C<repeat/until> below.
All these forms may produce a return value the same way C<loop> does.
=head2 X<repeat/while, repeat/until|control flow,repeat>
Perl 5 allows one to apply a statement modifier to a C<do> block such that
Expand All @@ -665,6 +667,8 @@ This can also be written quite naturally with C<until>:
...
} until $x >= 10;
All these forms may produce a return value the same way C<loop> does.
=head2 X<return|control flow>
=comment TODO
Expand Down

0 comments on commit 6e322dc

Please sign in to comment.