Have you tried "require" instead of "use"?

Teddy

----- Original Message ----- 
From: "David Ressler" <[EMAIL PROTECTED]>
To: "Perl List" <perl-win32-users@listserv.ActiveState.com>
Sent: Friday, April 21, 2006 7:58 PM
Subject: Ignoring unwanted "use"


> I have a library of Perl routines in which "use Authen::SASL;" appears and
is
> used in some, but not all, of my various websites. In those sites where I
don't
> use it, Authen is not installed, but the script fails in these sites
because
> "use" is evaluated at compile time, not run time.
>
> What's the best way to supress the "use" statement at those sites where
Authen
> is not used and is not installed? I don't want to have separate versions
of the
> library for different sites.
>
> Thanks,
> Dave
>
>
> _______________________________________________
> Perl-Win32-Users mailing list
> Perl-Win32-Users@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to