From: Dave Mitchell Date: Fri, 26 Mar 2004 17:28:48 +0000 (+0000) Subject: [perl #26839] document the return value of an empty sub X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4c885f753522207c2fe6ec9251d8d0843e5b9f58;p=p5sagit%2Fp5-mst-13.2.git [perl #26839] document the return value of an empty sub p4raw-id: //depot/perl@22595 --- diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 3619014..bfb2909 100644 --- a/pod/perlsub.pod +++ b/pod/perlsub.pod @@ -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 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 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,