From: "Carl Schoeneman" <[EMAIL PROTECTED]>
> 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?
Do you understand what that warning says? It's NOT void!
1) You need to put a BEGIN{} block around the
$script_dir = get_lib();
BEGIN {
$script_dir = get_lib();
}
2) Why do people keep enclosing variables in doublequotes? Don't
do it!
use lin $scriptdir;
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]