function::callers - Linux


Overview

function::callers is a Perl function that returns a list of all callers of the current function. It’s useful for debugging and analyzing code structure.

Syntax

my @callers = caller();

Options/Flags

None.

Examples

To print the callers of the current function:

use Function::Callers;

my @callers = caller();
for my $caller (@callers) {
  print "$caller\n";
}

Common Issues

None.

Integration

function::callers can be used with other Perl functions and modules for debugging and code analysis. For example, it can be used with Devel::Caller to get more information about each caller.

Related Commands

  • caller
  • Devel::Caller