summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoderick Schertler <roderick@gate.net>1997-01-06 22:34:20 -0500
committerChip Salzenberg <chip@atlantic.net>1997-01-08 11:52:00 +1200
commit218104faecb0ec19e0f4f89e084959e757a5230f (patch)
tree631a4f1f0685cdd6062094f6ba6ef1911a011ce6
parent4d42f92e5bf79556508016b7af91233b12e526eb (diff)
downloadperl-218104faecb0ec19e0f4f89e084959e757a5230f.tar.gz
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>
-rw-r--r--pod/perlfunc.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 489c7d7171..c1a95ccd5d 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