Name
T
Synopsis
T
Produces a stack backtrace. For example:
DB<2> T $ = main::infested called from file 'Ambulation.pm' line 10 @ = Ambulation::legs(1, 2, 3, 4) called from file 'camel_flea' line 7 $ = main::pests('bactrian', 4) called from file 'camel_flea' line 4
The lefthand character ($
or @
) tells whether the
function was called in a scalar or list context. The example shows
three lines because it was three functions deep when the stack
backtrace ran.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.