This will work.. but you probably can't use it for a subroutine call
returning the $libdir.
BEGIN {
our @INC;
my $libdir = "/libpath";
unshift(@INC, $libdir)
}
-----Original Message-----
From: Carl Schoeneman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 2:28 PM
To: [EMAIL PROTECTED]
Subject: Empty compile time value given to use lib
Hola,
I'm using "use lib" dynamically:
$script_dir = get_lib();
use lib "$script_dir";
This works but generates the warning "Empty compile time value given to use
lib." Is there any way to supress this message without disabling warnings
entirely?
Thank you,
Carl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]