This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Clarification to the syntax of loop modifiers
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 28 Jul 2005 17:34:36 +0000 (17:34 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 28 Jul 2005 17:34:36 +0000 (17:34 +0000)
by Piotr Fusik

p4raw-id: //depot/perl@25241

pod/perlfunc.pod

index 3fd0032..0bbd489 100644 (file)
@@ -1229,9 +1229,10 @@ behavior may be fixed in a future release.
 =item do BLOCK
 
 Not really a function.  Returns the value of the last command in the
-sequence of commands indicated by BLOCK.  When modified by a loop
-modifier, executes the BLOCK once before testing the loop condition.
-(On other statements the loop modifiers test the conditional first.)
+sequence of commands indicated by BLOCK.  When modified by the C<while> or
+C<until> loop modifier, executes the BLOCK once before testing the loop
+condition. (On other statements the loop modifiers test the conditional
+first.)
 
 C<do BLOCK> does I<not> count as a loop, so the loop control statements
 C<next>, C<last>, or C<redo> cannot be used to leave or restart the block.