Module::Dependency::Indexer

Module::Dependency::Indexer is a Perl module that creates the databases used by the dependency mapping module.
Download

Module::Dependency::Indexer Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tim Bunce
  • Publisher web site:
  • http://search.cpan.org/~timb/Module-Dependency-1.86/lib/Module/Dependency/Indexer.pm

Module::Dependency::Indexer Tags


Module::Dependency::Indexer Description

Module::Dependency::Indexer is a Perl module that creates the databases used by the dependency mapping module. Module::Dependency::Indexer is a Perl module that creates the databases used by the dependency mapping module.SYNOPSIS use Module::Dependency::Indexer; Module::Dependency::Indexer::setIndex( '/var/tmp/dependency/unified.dat' ); Module::Dependency::Indexer::makeIndex( $directory, ); Module::Dependency::Indexer::setShebangCheck( 0 );This module looks at all .pm, .pl and .plx files within and below a given directory/directories (found with File::Find), reads through them and extracts some information about them. If the shebang check is turned on then it also looks at the first line of all other files, to see if they're perl programs too. We extract this information:· The name of the package (e.g. 'Foo::Bar') or the name of the script (e.g. 'chat.pl')· The full filesystem location of the file.· The dependencies of the file - i.e. the packages that it 'use's or 'require's· The reverse dependencies - i.e. what other scripts and modules THAT IT HAS INDEXED use or require the file. It can't, of course, know about 'use' statements in files it hasn't examined.When it has extracted all this information it uses Storable to write the data to disk in the indexfile location.This search is quite an expensive operation, taking around 10 seconds for the site_perl directory here. However once the information has been gathered it's extremely fast to use. Requirements: · Perl


Module::Dependency::Indexer Related Software