1if(3pm) Perl Programmers Reference Guide if(3pm)
2
3
4
6 if - "use" a Perl module if a condition holds
7
9 use if CONDITION, MODULE => ARGUMENTS;
10
12 The construct
13
14 use if CONDITION, MODULE => ARGUMENTS;
15
16 has no effect unless "CONDITION" is true. In this case the effect is
17 the same as of
18
19 use MODULE ARGUMENTS;
20
21 Above "=>" provides necessary quoting of "MODULE". If not used (e.g.,
22 no ARGUMENTS to give), you'd better quote "MODULE" yourselves.
23
25 The current implementation does not allow specification of the required
26 version of the module.
27
29 Ilya Zakharevich mailto:perl-module-if@ilyaz.org <mailto:perl-module-
30 if@ilyaz.org>.
31
32
33
34perl v5.12.4 2011-06-20 if(3pm)