On Fri, 6 Jun 2003 18:14:57 +0100 Tim Bunce <[EMAIL PROTECTED]> wrote:
> I think changes to SHLIB_PATH (like LD_LIBRARY_PATH) don't affect > the running process. Someone posted an example some weeks ago that > sets the end var then re-executes the script - that would work. It helps if you remember that perl is the running process that has to load shared libraries, not the Perl script. As a result, changes to environment variables in the script don't necessarily help the loader running for perl find the Oracle shared libraries. I either set all my environment variables before starting Perl, or set them in the script and then have it exec() itself. In some OSes setting them in a BEGIN block may work, YMMV. I know Tim knows all this, but I wanted it to be clearer in the archives. -- Mac :}) Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age.
