nope that doesn't work.. tried it. it doesn't like that you are passing use lib a var
but this does work, but don't know how you would put a subroutine in there. BEGIN { our @INC; my $libdir = "/libpath"; unshift(@INC, $libdir) } -----Original Message----- From: Wagner-David [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 3:54 PM To: 'Carl Schoeneman'; [EMAIL PROTECTED] Subject: RE: Empty compile time value given to use lib You might be able to block the code with warnings within the block and then when it hits the end of the block, it will return to it's prior state. Wags ;) -----Original Message----- From: Carl Schoeneman [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 11:28 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] -- 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]