in reply to PATH is not setting - PERL

whats not detecting?

Replies are listed 'Best First'.
Re^2: PATH is not setting - PERL
by lorn (Monk) on Oct 15, 2007 at 11:46 UTC

    The user that run the script, can read the path?

    Try:

    Begin{ $ENV{'LD_LIBRARY_PATH'}= "/opt/instantclient_10_2/"; $ENV{'ORACLE_HOME'}= "/opt/instantclient_10_2/"; };

    And show more core of your scripts.

Re^2: PATH is not setting - PERL
by srini_sun (Initiate) on Oct 15, 2007 at 11:45 UTC
    HI,

    I am calling DB connection in my code. So the PERL program trying to find the LD_LIBRARY_PATH and ORACLE_HOME.. Though I set using $ENV , the perl program is not able to find both Environment variables and giving error. If I manually set using export command , then works.

    Thanks Sri