A little better comments.
[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
11$VERSION = '0.02';
12
13# Package to to test Bigint's simulation of Calc
14
15# uses Calc, but only features the strictly necc. methods.
16
17use Math::BigInt::Calc v0.17;
18
19BEGIN
20 {
21 foreach (qw/ base_len new zero one two copy str num add sub mul div inc dec
22 acmp len digit zeros
23 is_zero is_one is_odd is_even is_one check
24 /)
25 {
26 my $name = "Math::BigInt::Calc::_$_";
27 no strict 'refs';
28 *{"Math::BigInt::BareCalc::_$_"} = \&$name;
29 }
30 }
31
32# catch and throw away
33sub import { }
34
351;