![]() |
![]()
| ![]() |
![]()
NAMEPerl::Metrics::Lite::FileFinder - find perl files in paths find_files( @directories_and_files )Uses list_perl_files to find all the readable Perl files and returns a reference to a (possibly empty) list of paths. list_perl_filesTakes a list of one or more paths and returns an alphabetically sorted list of only the perl files. Uses is_perl_file so may throw an exception if a file is unreadable. is_perl_file($path)Takes a path to a file and returns true if the file appears to be a Perl file, otherwise returns false. If the file name does not match any of @Perl::Metrics::Lite::PERL_FILE_SUFFIXES then the file is opened for reading and the first line examined for a a Perl 'shebang' line. An exception is thrown if the file cannot be opened in this case.
|