App::FindCallers – find callers of a given function in a directory tree
Version 0.02
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.
name
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
Tadeusz „tadzik” Sośnierz <tadeusz@sosnierz.com>
This software is copyright (c) 2016 by Tadeusz Sośnierz, and is MIT licensed.
To install App::FindCallers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::FindCallers
CPAN shell
perl -MCPAN -e shell install App::FindCallers
For more information on module installation, please visit the detailed CPAN module installation guide.