BareCalc.pm revision 7c478bd95313f5f23a4c958a745db2134aa03244
use 5.005;
use strict;
# use warnings; # dont use warnings for older Perls
require Exporter;
$VERSION = '0.02';
sub api_version () { 1; }
# Package to to test Bigint's simulation of Calc
# uses Calc, but only features the strictly necc. methods.
BEGIN
{
no strict 'refs';
foreach (qw/
and xor or
/)
{
my $name = "Math::BigInt::Calc::_$_";
*{"Math::BigInt::BareCalc::_$_"} = \&$name;
}
print "# BareCalc using Calc v$Math::BigInt::Calc::VERSION\n";
}
# catch and throw away
sub import { }
1;