Jay Caviness wrote:
> I have discovered that my Oracle installation has the DBI.pm module in
> it.  I really want to use this, but don't know how to have the @INC see
> it when I do:
> 
> oracle> perl -e "use DBI;"
> 
> Can't locate DBI.pm in @INC (@INC contains:
> /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
> /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
> /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
> /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
> 

Normally you add to the @INC using the PERL5LIB environment variable. If
"oracle>" represents a normal bash shell, then,

export PERL5LIB="/path/to/lib/dir"

Should do the trick. If it is actually the Oracle client then you might
try the same because *theoretically* the subprocess should inherit and
respect the same environment.

HTH,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to