Module::Install::CheckOptional - A Module::Install extension that checks to see if an optional dependency is satisfied
In Makefile.PL: use inc::Module::Install; ... check_optional( Carp => 1.02, "This module will perform better error reporting with Carp installed.");
This is a Module::Install extension that checks that a suitable version of a module is installed, printing a message if it is not.
Checks whether a module is installed or not and that it has the correct version. Prints a note similar to the following if the module with a version greater than or equal to the specified version cannot be found:
*************************************************************************** NOTE: The optional module Carp (version 1.03) is not installed.
In addition, the optional MESSAGE argument will be appended to the notice.
This code is distributed under the GNU General Public License (GPL) Version 2. See the file LICENSE in the distribution for details.
David Coppit <david@coppit.org>
Module::Install
To install Module::Install::CheckOptional, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Install::CheckOptional
CPAN shell
perl -MCPAN -e shell install Module::Install::CheckOptional
For more information on module installation, please visit the detailed CPAN module installation guide.