X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlsub.pod;h=0839f1bd9412cf52005d3304834a7843911b3845;hb=c597ea9d1c1012b41c344b95f9168d25caff8204;hp=3619014e660e8c4a8688bf982ff4029bbf6dacdd;hpb=882672714c7b1c946ae8e88a96766a508485d95e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 3619014..0839f1b 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, @@ -211,7 +212,7 @@ C plus all functions mentioned in L and L. The C, C, C and C subroutines are not so much subroutines as named special code blocks, of which you can have more -than one in a package, and which you can B call explicitely. See +than one in a package, and which you can B call explicitly. See L =head2 Private Variables via my()