From 4dd6c65fbede48f7d20b2635d98243597695527c Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Thu, 28 Oct 2010 19:10:17 +0100 Subject: [PATCH] Math::BigInt::FastCalc doesn't need to override methods in a BEGIN block. The BEGIN context of the code Cing it will be early enough for the subroutine assignments to take full effect. --- dist/Math-BigInt-FastCalc/FastCalc.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dist/Math-BigInt-FastCalc/FastCalc.pm b/dist/Math-BigInt-FastCalc/FastCalc.pm index bc7ab94..f044132 100644 --- a/dist/Math-BigInt-FastCalc/FastCalc.pm +++ b/dist/Math-BigInt-FastCalc/FastCalc.pm @@ -16,11 +16,9 @@ $VERSION = '0.24'; # announce that we are compatible with MBI v1.70 and up sub api_version () { 1; } -BEGIN - { - # use Calc to override the methods that we do not provide in XS +# use Calc to override the methods that we do not provide in XS - for my $method (qw/ +for my $method (qw/ str add sub mul div rsft lsft @@ -39,7 +37,6 @@ BEGIN } ($BASE_LEN, $BASE) = Math::BigInt::Calc::_base_len(); - } require XSLoader; XSLoader::load(__PACKAGE__, $VERSION, $BASE_LEN, $BASE); -- 2.7.4