ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
3.2.10 callercaller This function returns information about the stack of current subroutine calls. Without an argument it returns the package name, filename, and line number that the currently executing subroutine was called from: ($package, $filename, $line) = caller; With an argument it evaluates
$i = 0; while (($pack, $file, $line, $subname, $hasargs, $wantarray) = caller($i++)) { ... } Furthermore, when called from within the DB package,
caller returns more detailed information: it sets the list
variable |