From: Roderick Schertler <roderick@gate.net>
Date: Tue, 7 Jan 1997 03:34:20 +0000 (-0500)
Subject: scalar caller doc fix
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=218104faecb0ec19e0f4f89e084959e757a5230f;p=p5sagit%2Fp5-mst-13.2.git

scalar caller doc fix

The second bit is due to Tom Phoenix, I stuck it in since I was in there
already.

p5p-msgid: <18245.852608060@eeyore.ibcinc.com>
---

diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 489c7d7..c1a95cc 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -393,8 +393,9 @@ blessing (and blessings) of objects.
 =item caller
 
 Returns the context of the current subroutine call.  In a scalar context,
-returns TRUE if there is a caller, that is, if we're in a subroutine or
-eval() or require(), and FALSE otherwise.  In a list context, returns
+returns the caller's package name if there is a caller, that is, if
+we're in a subroutine or eval() or require(), and the undefined value
+otherwise.  In a list context, returns
 
     ($package, $filename, $line) = caller;
 
@@ -403,7 +404,7 @@ print a stack trace.  The value of EXPR indicates how many call frames
 to go back before the current one.
 
     ($package, $filename, $line,
-     $subroutine, $hasargs, $wantargs) = caller($i);
+     $subroutine, $hasargs, $wantarray) = caller($i);
 
 Furthermore, when called from within the DB package, caller returns more
 detailed information: it sets the list variable @DB::args to be the