in reply to Re: environment variable
in thread environment variable

The SYBASE env. variable is special...

Actually, that's not the case. It's the LD_LIBRARY_PATH variable that needs to be set outside of the running process for it to have any effect.

The SYBASE env. variable can be set normally when using DBI/DBD::Sybase - it needs to be set before DBD::Sybase gets loaded, but as that only happens on the first DBI->connect() there is no need to use a BEGIN block.

Michael

Replies are listed 'Best First'.
Re(3): environment variable
by dmmiller2k (Chaplain) on Dec 28, 2001 at 03:18 UTC

    Right you are! I stand corrected. Thanks, mpeppler. Good catch.

    You would think with all of the times this particular thing has bitten me in the behind, I'd remember the difference between SYBASE and LD_LIBRARY_PATH. In my own defense, the environment where this was a problem bundled these two things together in one script for changing between production and development.

    dmm

    You can give a man a fish and feed him for a day ...
    Or, you can
    teach him to fish and feed him for a lifetime