diff options
author | Ilya Zakharevich <ilya@math.ohio-state.edu> | 1997-01-21 10:26:32 +1200 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-01-25 15:58:00 +1200 |
commit | e7ea3e70155d0bea30720ba41eb6bb6742aac0d1 (patch) | |
tree | eced55218bc1fc8626006cea8162ac9db29e39f1 /pod/perlfunc.pod | |
parent | 9e3a2af888982d0a201149cbcdbf3feb6771acb4 (diff) | |
download | perl-e7ea3e70155d0bea30720ba41eb6bb6742aac0d1.tar.gz |
patch for LWP 5.05 to make it play with both 5.003 and 5.003_20 + overload patch
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 488c797c65..34d9281835 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -408,8 +408,17 @@ With EXPR, it returns some extra information that the debugger uses to 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, $wantarray) = caller($i); + ($package, $filename, $line, $subroutine, + $hasargs, $wantarray, $evaltext, $is_require) = caller($i); + +Here $subroutine may be C<"(eval)"> if the frame is not a subroutine +call, but C<L<eval>>. In such a case additional elements $evaltext and +$is_require are set: $is_require is true if the frame is created by +C<L<require>> or C<L<use>> statement, $evaltext contains the text of +C<L<eval EXPR>> statement. In particular, for C<L<eval BLOCK>> +statement $filename is C<"(eval)">, but $evaltext is undefined. (Note +also that C<L<use>> statement creates a C<L<require>> frame inside +an C<L<eval EXPR>>) frame. Furthermore, when called from within the DB package, caller returns more detailed information: it sets the list variable @DB::args to be the |