in reply to Class::DBI::Oracle environment variable issue
Given your findings, what you need to do in the BEGIN block is something along the following lines:
BEGIN { if ($ENV{LD_LIBRARY_PATH} doesn't contain the necessary thingy and $ENV{ORACLE_HOME} doesn't contain the necessary thingy) { set $ENV as above exec $0, @_; } }
This re-executes the script, but the environment has been changed. Double check the syntax for all the bits; the concept of "diddle %ENV and exec myself" will do the trick. I know I had to do stuff like that with Sybase.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class::DBI::Oracle environment variable issue
by mildside (Friar) on Nov 22, 2005 at 23:01 UTC |