Collect the traceback information available via caller(). Some filtering and cleanup of the data is done.
caller()
skip defines the number of stack frames to be skipped, working backwards from the most current frame before the call the debugger DB::DB call if scan_for_DB is set, or the most-current frame.
skip
count determines the total number of call frames to be returned; all of them (well, the first 10^9) are returned if count is omitted.
count
This routine returns a list of hashes, from most-recent to least-recent stack frame. Each has the following keys and values:
wantarray - . (null), $ (scalar), or @ (array)
wantarray
.
$
@
fn - subroutine name, or eval information
fn
eval
args - undef, or a reference to an array of arguments
args
file - the file in which this item was defined (if any)
file
line - the line on which it was defined
line
evaltext - eval text if we are in an eval.
evaltext
To install Devel::Trepan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Trepan
CPAN shell
perl -MCPAN -e shell install Devel::Trepan
For more information on module installation, please visit the detailed CPAN module installation guide.