The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

File::CodeSearch - Search file contents in code repositories

VERSION

This documentation refers to File::CodeSearch version 0.1.

SYNOPSIS

   use File::CodeSearch;

   # Simple usage
   code_search {
       my ($file, $line) = @_;
       // do stuff
   },
   @dirs;

   # More control
   my $cs = File::CodeSearch->new();
   $cs->code_search(sub {}, @dirs);

DESCRIPTION

SUBROUTINES/METHODS

serach ( $search, @dirs )

Param: $search - code ref - subroutine to be executed each time a match is found

Param: @dir - paths - an array of the directory paths to search through

Description:

serach_file ( $search, $file, $parent )

Param: $search - code ref - subroutine to be executed each time a match is found

Param: $file - file - A file to search through line by line

Param: $parent - path - The directory from @dirs which the file was found in

Description:

search_file

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

AUTHOR

Ivan Wills - (ivan.wills@gmail.com)

LICENSE AND COPYRIGHT

Copyright (c) 2009 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.