summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-10-21 15:06:13 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-10-21 15:06:13 +0000
commit9a9897716602799978192865b19161f65ea040c1 (patch)
tree8ee955dd6ae384f4befdc8f1a3bd851d2aa02c8f /pod/perlsub.pod
parent505389e8dbf3364e476c50d868d72108af86ee5b (diff)
downloadperl-9a9897716602799978192865b19161f65ea040c1.tar.gz
Rewording of doc change #25812
p4raw-link: @25812 on //depot/perl: dbb128be9d98f2152d3ce957d4c3c518a9f86260 p4raw-id: //depot/perl@25816
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 9711ca6c0d..5054910297 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -83,9 +83,9 @@ aggregates (arrays and hashes), these will be flattened together into
one large indistinguishable list.
If no C<return> is found and if the last statement is an expression, its
-value is returned. Otherwise, if the last statement is a control structure
-like a C<foreach>, the returned value is unspecified. The empty sub
-returns the empty list.
+value is returned. If the last statement is a loop control structure
+like a C<foreach> or a C<while>, the returned value is unspecified. The
+empty sub returns the empty list.
X<subroutine, return value> X<return value> X<return>
Perl does not have named formal parameters. In practice all you