diff options
author | Roderick Schertler <roderick@gate.net> | 1997-01-06 22:34:20 -0500 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-01-08 11:52:00 +1200 |
commit | 218104faecb0ec19e0f4f89e084959e757a5230f (patch) | |
tree | 631a4f1f0685cdd6062094f6ba6ef1911a011ce6 | |
parent | 4d42f92e5bf79556508016b7af91233b12e526eb (diff) | |
download | perl-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.pod | 7 |
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 |