Alpha version numbers noticed by Schwern.
[p5sagit/p5-mst-13.2.git] / t / lib / Math / BigInt / BareCalc.pm
1 package Math::BigInt::BareCalc;
2
3 use 5.005;
4 use strict;
5 # use warnings; # dont use warnings for older Perls
6
7 require Exporter;
8 use 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
17 use Math::BigInt::Calc '0.33';
18
19 BEGIN
20   {
21   no strict 'refs';
22   foreach (qw/  base_len new zero one two copy str num add sub mul div inc dec
23                 acmp len digit zeros
24                 is_zero is_one is_odd is_even is_one check
25                 to_small to_large
26                 /)
27     {
28     my $name  = "Math::BigInt::Calc::_$_";
29     *{"Math::BigInt::BareCalc::_$_"} = \&$name;
30     }
31   print "# BareCalc using Calc v$Math::BigInt::Calc::VERSION\n";
32   }
33
34 # catch and throw away
35 sub import { }
36
37 1;