p5find-method-call is a program to find method invocations.
The output is formatted like the output of grep -Hnr. Each line consists of colon-separated fields of filename, line number, and the content of that line.
grep -Hnr
Here's the result of searching for method calls in perlbrew repository:
> p5find-method-call lib/ lib/App/Perlbrew/Path/Installation.pm:12: $_[0]->basename; lib/App/Perlbrew/Path/Installation.pm:16: shift->child (bin => @_); lib/App/Perlbrew/Path/Installation.pm:20: shift->child (man => @_); lib/App/Perlbrew/Path/Installation.pm:24: shift->bin ('perl'); lib/App/Perlbrew/Path/Installation.pm:28: shift->child ('.version'); lib/App/Perlbrew/Path/Installations.pm:16: $return = $return->_child ('App::Perlbrew::Path::Installation' => shift @params) if @params; lib/App/Perlbrew/Path/Installations.pm:17: $return = $return->child (@params) if @params; lib/App/Perlbrew/Path/Installations.pm:23: shift->_children ('App::Perlbrew::Path::Installation' => @_); lib/App/Perlbrew/Path/Installations.pm:27: shift->children; lib/App/Perlbrew/Path/Root.pm:13: shift->child (bin => @_);
To install App::p5find, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::p5find
CPAN shell
perl -MCPAN -e shell install App::p5find
For more information on module installation, please visit the detailed CPAN module installation guide.