Devel::CallerItem is an Perl object representing a function call from the stack of function calls.
SYNOPSIS
Usage:
require Devel::CallerItem;
$call = Devel::CallerItem->from_depth($depth) || return;
$passed_arguments_ref = $call->argument_list_ref();
$callpack = $call->pack();
$callfile = $call->file();
$callline = $call->line();
$callsub = $call->subroutine();
$bool = $call->has_args();
$bool = $call->wants_array();
($arg_ref,@caller) = $call->as_array();
$call_string = $call->as_string($print_level);
$passed_arguments_string = $call->arguments_as_string();
$printable_arg = Devel::CallerItem->printable_arg($arg,$print_level);
Devel::CallerItem objects hold all the information about a specific function call on the stack. The information is basically that obtained from caller and @DB::args, packaged into an object. This comes with some useful methods to print the object in a nice way.
Product's homepage
Requirements:
· Perl