ApTest::CPAN - Routines to install Perl modules from CPAN.
use ApTest::CPAN; set_cpan_config(); install_module('Module::Name', 1);
This is primarily used by install-module to do the "hard work" of installing CPAN modules.
set_cpan_config
Sets up the configuration of CPAN for this session. Must be called before "install_module". Takes one boolean parameter. If true, "install_module" will install modules globally instead of to the local lib/ directory. On most systems, you have to be root to do that.
install_module
Installs a module from CPAN. Takes two arguments:
$name
- The name of the module, just like you'd pass to the install
command in the CPAN shell.
$notest
- If true, we skip running tests on this module. This can greatly speed up the installation time.Note that calling this function prints a lot of information to STDOUT and STDERR.
Copyright © 2000-2013 Applied Testing and Technology, Inc. All rights reserved.