Hi all,

Just need to confirm if this is the expected behaviour when setting
PERL5LIB.

If I have the folllowing in my script ...

==========================================================

#!/usr/bin/perl

$ENV{PERL5LIB}="/oracle/product/db/11.1/perl/lib/site_perl/5.8.3/x86_64-linux-thread-multi";

use File::Path;
use File::Basename;
use DBI;

print "ORACLE_HOME => $ENV{ORACLE_HOME}" . "\n";
print "LD_LIBRARY_PATH => $ENV{LD_LIBRARY_PATH}" . "\n";
print "PERL5LIB => $ENV{PERL5LIB}" . "\n";


print "+-----------------------------------------------------------------+
\n";
print "\n";
print join"\n" , @INC;
print "\n";
print "+-----------------------------------------------------------------+
\n";


==========================================================

@INC does not contain the require modules that am expecting to be loaded.

But if I export PERL5LIB from the OS and then do perl -V, it shows the
modules that am expecting to be loaded
from /oracle/product/db/11.1/perl/lib/site_perl/5.8.3/x86_64-linux-thread-multi.

If this the case, does that mean I should be using use lib instead
of 
$ENV{PERL5LIB}="/oracle/product/db/11.1/perl/lib/site_perl/5.8.3/x86_64-linux-thread-multi"?

Any feedback will be very much appreciated. Thanks ...

Reply via email to