if - use a Perl module if a condition holds
use
use if CONDITION, MODULE => ARGUMENTS;
The construct
has no effect unless CONDITION is true. In this case the effect is the same as of
CONDITION
use MODULE ARGUMENTS;
Above => provides necessary quoting of MODULE. If not used (e.g., no ARGUMENTS to give), you'd better quote MODULE yourselves.
=>
MODULE
The current implementation does not allow specification of the required version of the module.
Ilya Zakharevich mailto:perl-module-if@ilyaz.org.
To install Env, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Env
CPAN shell
perl -MCPAN -e shell install Env
For more information on module installation, please visit the detailed CPAN module installation guide.