in reply to Re: %ENV and DBI
in thread %ENV and DBI

Thanks almut! I was close. Instead of this:
$ENV{ORACLE_HOME} = $orahome; $ENV{LD_LIBRARY_PATH} = $oralib; exec $0, @ARGV;

I was trying this:
exec("export ORACLE_HOME=$orahome LD_LIBRARY_PATH=$oralib; $0");

Thanks again, your solution works.