how about a begin statement near the top of your program
something like
BEGIN { unshift @INC,
"/old_perl/lib/site_perl/5.6.1/sun4-solaris/auto/DBD/Oracle" }
or even set the env variable with BEGIN
> -----Original Message-----
> From: Jeff Hunter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: Get the version in code
>
>
>
> We are testing a new version of the Perl DBD linked with the
> new Oracle
> 9i client libraries. I have two Oracle.so files, one in
> ~/old_perl/lib/site_perl/5.6.1/sun4-solaris/auto/DBD/Oracle/Oracle.so
> and one in
> ~/new_perl/lib/site_perl/5.6.1/sun4-solaris/auto/DBD/Oracle/Or
> acle.so.
> I can switch which version I want to test by changing my $PERLLIB
> environment variable.
>
> Is there any way I can get either the DBD version or the
> explicit path
> of the Oracle.so file inside a perl script? I know I can
> reference the
> PERLLIB environment variable, but I want conclusive information from
> either the DBD or DBI that I am using a particular Oracle.so library.
>
>
>