blob: 9cc7e944305bf1c901b3d6293e263d6fbb19e49b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package Math::BigInt::BareCalc;
use 5.005;
use strict;
# use warnings; # dont use warnings for older Perls
require Exporter;
use vars qw/@ISA $VERSION/;
@ISA = qw(Exporter);
$VERSION = '0.02';
# Package to to test Bigint's simulation of Calc
# uses Calc, but only features the strictly necc. methods.
use Math::BigInt::Calc v0.17;
BEGIN
{
foreach (qw/ base_len new zero one two copy str num add sub mul div inc dec
acmp len digit zeros
is_zero is_one is_odd is_even is_one check
/)
{
my $name = "Math::BigInt::Calc::_$_";
no strict 'refs';
*{"Math::BigInt::BareCalc::_$_"} = \&$name;
}
}
# catch and throw away
sub import { }
1;
|