summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-07-28 17:34:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-07-28 17:34:36 +0000
commit6b275a1faab554e85a79bafae9c99ec0d6ed3d18 (patch)
treecb1dd78043fba50b0c364646da56ed3add2d4061 /pod
parentea1bde1698e6ad6e5f9da28bfbefc2987ec7abcc (diff)
downloadperl-6b275a1faab554e85a79bafae9c99ec0d6ed3d18.tar.gz
Clarification to the syntax of loop modifiers
by Piotr Fusik p4raw-id: //depot/perl@25241
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 3fd0032597..0bbd489750 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -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.