Abstract

p5find-method-call is a program to find method invocations.

Examples

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.

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 => @_);