Adam Kennedy wrote:
One interesting method for that situation may be to look for the existance
of Math::BigInt.

Except in this particular case, M::BI has been in the core since Perl 5.000 (though it didn't gain a $VERSION until v5.6.1).

If Math::BigInt is installed, report a dependency of Math::BigInt 1.64.

In this case, it might be better for the OP to use:

        require 5.008_001;

since that will include Math::BigInt 1.66 or better, thus satisfying the module's needs. If Perl is not v5.8.1 or better, then a true dependency on Math::BigInt could be reported, which would then fail at the correct point.

John

Reply via email to