Virtual Solutions : WebmasterCorner : Other Resources : Documentation : Perl Modules : Home

Print Page Email Page Bookmark Page if


NAME

if - use a Perl module if a condition holds


SYNOPSIS

  use if CONDITION, MODULE => ARGUMENTS;


DESCRIPTION

The construct

  use if CONDITION, MODULE => ARGUMENTS;

has no effect unless CONDITION is true. In this case the effect is the same as of

  use MODULE ARGUMENTS;

Above => provides necessary quoting of MODULE. If not used (e.g., no ARGUMENTS to give), you'd better quote MODULE yourselves.


BUGS

The current implementation does not allow specification of the required version of the module.


AUTHOR

perldoc2tree.cgi: /usr/lib/perl5/5.8.8/if.pm: cannot resolve L in paragraph 20.

Ilya Zakharevich mailto:perl-module-if@ilyaz.org.




© Copyright 1997 - 2011 Virtual Solutions. All Rights Reserved.