This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #26839] document the return value of an empty sub
authorDave Mitchell <davem@fdisolutions.com>
Fri, 26 Mar 2004 17:28:48 +0000 (17:28 +0000)
committerDave Mitchell <davem@fdisolutions.com>
Fri, 26 Mar 2004 17:28:48 +0000 (17:28 +0000)
p4raw-id: //depot/perl@22595

pod/perlsub.pod

index 3619014..bfb2909 100644 (file)
@@ -67,7 +67,8 @@ Assigning to the whole array C<@_> removes that aliasing, and does
 not update any arguments.
 
 The return value of a subroutine is the value of the last expression
-evaluated.  More explicitly, a C<return> statement may be used to exit the
+evaluated by that sub, or the empty list in the case of an empty sub.
+More explicitly, a C<return> statement may be used to exit the
 subroutine, optionally specifying the returned value, which will be
 evaluated in the appropriate context (list, scalar, or void) depending
 on the context of the subroutine call.  If you specify no return value,