if -use
a Perl module if a condition holds
use if CONDITION, MODULE => ARGUMENTS;
The construct
use if CONDITION, MODULE => ARGUMENTS;
has no effect unlessCONDITION
is true. In this case the effect is the same as of
use MODULE ARGUMENTS;
The current implementation does not allow specification of the required version of the module.
Ilya Zakharevichmailto:perl-module-if@ilyaz.org.
Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.
The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.