Kai Jendrian wrote:
>
>BEGIN {
> $ENV{'ORACLE_HOME'} = "/opt/ivas/oracle/product/8.1.6";
> $ENV{'LD_LIBRARY_PATH'} = $ENV{'ORACLE_HOME'} . "/lib";
>}
And Tim said:
> Setting LD_LIBRARY_PATH after the program has started will not
> affect that program. It's too late by then.
One way around this, if you don't mind your program restarting on its
own, is to do this. I believe it was someone on this list who pointed
out this one to me:
BEGIN
{
if (!defined($ENV{'ORACLE_HOME'}))
{
$ENV{'ORACLE_HOME'} = "/opt/ivas/oracle/product/8.1.6";
$ENV{'LD_LIBRARY_PATH'} = $ENV{'ORACLE_HOME'} . "/lib";
exec($^X, $0, @ARGV);
}
}
--
Steve Sapovits
[EMAIL PROTECTED]