Brian Raven wrote:
> 
> Strange. 'perldoc if' seems to do the trick for me. Also, it is listed
> under pragmas in the Activestate html documentation.
> 
> I am using perl 5.8.*, if that helps. I think that it is a fairly recent
> addition. I don't think it was in 5.6.

Got it:

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;

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

AUTHOR
    Ilya Zakharevich <mailto:[EMAIL PROTECTED]>.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to