Subject: | Cannot use Math::BigInt::CalcEmu directly |
# perl -e 'use Math::BigInt::CalcEmu;'
Can't locate object method "config" via package "Math::BigInt" at /usr/share/perl5/Math/BigInt/CalcEmu.pm line 18.
BEGIN failed--compilation aborted at /usr/share/perl5/Math/BigInt/CalcEmu.pm line 21.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
This is because Math::BigInt::CalcEmu does not use Math::BigInt before executing $CALC_EMU = Math::BigInt->config()->{'lib'}; in the BEGIN section.
If direct use is not intended it should be declared in the documentation. Current synopsis is plain:
SYNOPSIS
use Math::BigInt::CalcEmu;