The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

App::FindCallers – find callers of a given function in a directory tree

VERSION

Version 0.02

SYNOPSIS

find_callers.pl <name> [<directory>]

This app will search the directory (optionally specified as a second argument; will default to the current directory) for references to the supplied function name. It won't actually bother checking if name is indeed a name of a sub, so you can probably use it for anything else too.

Example usage:

$ find_callers.pl dupa t/testfiles/simple/
Called from foo() in t/testfiles/simple/test.pl:3
Called from baz() in t/testfiles/simple/test.pl:9
Defined in bar() in t/testfiles/simple/test.pl:8
Defined in nested() in t/testfiles/simple/test.pl:7

AUTHOR

Tadeusz „tadzik” Sośnierz <tadeusz@sosnierz.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Tadeusz Sośnierz, and is MIT licensed.