only::install - Install multiple versions of modules


only documentation  | view source Contained in the only distribution.

Index


NAME

Top

only::install - Install multiple versions of modules

SYNOPSIS

Top

    use only::install qw(install);

    chdir($module_installation_directory);

    install;

    install(version => 1.23,
            versionlib => '/my/version/lib',
           );

DESCRIPTION

Top

This module provides the programmer's API for installing multiple versions of a module. There is only one exportable function: install.

In order to install, you must be chdir()ed into a valid module distribution directory, and make or ./Build must already have been run. More specifically, there must be a blib directory and either a Makefile or a META.yml file.

ARGUMENTS

Top

* version

The version parameter tells install which version to install the distribution modules under. You normally don't need this, since install can extrapolate the vaule from the Makefile or from the META.yml file.

* versionlib

The versionlib parameter tells where to install the distribution contents. The default is stored in only::config.

AUTHOR

Top

Brian Ingerson <INGY@cpan.org>

COPYRIGHT

Top


only documentation  | view source Contained in the only distribution.