2 versions, 1 script (A tale of madness.)

So, I have a machine running solaris (x86) and it has two different versions of Math::BigInt installed on it. The older version is 1.77. The newer version is 1.87 (via activeperl). When I run my code, one of the modules I use needs at least version 1.78. Somehow, it defaults to looking at the version 1.77 and ignores the fact that 1.87 is there. Is there a way to force things to see this newer version of Math::BigInt?

so what's the reason to keep version 1.77? why not delete it?

Well, math-bigint is a core module and cannot be upgraded without upgrading perl. We're not allowed to upgrade our perl version at this time.

My perl pocket reference says that "use" has an optional version. So I guess that something like: use Math::BigInt 1.87; might work.

I tried it yesterday and it didn't work. Thanks for the reply though. I appreciate it.

Perl has an include path (@INC) just as Unix/Linux has a command path ($PATH). Find the location of Math::BigInt 1.87 and place that at the start of @INC. I will leave the details of how to do this to you.

Andrew