Remove now-irrelevant comment
[p5sagit/p5-mst-13.2.git] / t / lib / Math / BigInt / BareCalc.pm
CommitLineData
394e6ffb 1package Math::BigInt::BareCalc;
2
3use 5.005;
4use strict;
5# use warnings; # dont use warnings for older Perls
6
7require Exporter;
8use vars qw/@ISA $VERSION/;
9@ISA = qw(Exporter);
10
7b29e1e6 11$VERSION = '0.04';
9b924220 12
13sub api_version () { 1; }
394e6ffb 14
15# Package to to test Bigint's simulation of Calc
16
17# uses Calc, but only features the strictly necc. methods.
18
7b29e1e6 19use Math::BigInt::Calc '0.48';
394e6ffb 20
21BEGIN
22 {
dca3595e 23 no strict 'refs';
9b924220 24 foreach (qw/
25 base_len new zero one two ten copy str num add sub mul div mod inc dec
26 acmp len digit zeros
27 rsft lsft
28 fac pow gcd log_int sqrt root
29 is_zero is_one is_odd is_even is_one is_two is_ten check
7b29e1e6 30 as_hex as_bin as_oct from_hex from_bin from_oct
9b924220 31 modpow modinv
32 and xor or
33 /)
394e6ffb 34 {
35 my $name = "Math::BigInt::Calc::_$_";
394e6ffb 36 *{"Math::BigInt::BareCalc::_$_"} = \&$name;
37 }
990fb837 38 print "# BareCalc using Calc v$Math::BigInt::Calc::VERSION\n";
394e6ffb 39 }
40
41# catch and throw away
42sub import { }
43
441;