From: M.J.T. Guy <mjtg@cus.cam.ac.uk>
Date: Tue, 18 Mar 1997 14:50:10 +0000 (+0000)
Subject: Document return from do FILE
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ba8d5fb439878113de8abc9b52d2af237d30fb3c;p=p5sagit%2Fp5-mst-13.2.git

Document return from do FILE

I observe by experiment that you can use 'return' to exit from a 'do',
but this fact is not documented.

p5p-msgid: E0w70DK-0001yJ-00@ursa.cus.cam.ac.uk
---

diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 0372ee3..da066c8 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -2501,7 +2501,7 @@ so you'll probably want to use them instead.  See L</my>.
 
 =item return LIST
 
-Returns from a subroutine or eval with the value specified.  (Note that
+Returns from a subroutine, eval or do with the value specified.  (Note that
 in the absence of a return a subroutine or eval() will automatically
 return the value of the last expression evaluated.)