in reply to how to avoid Bigint module
You could build a perl configured to use quadruple precision floating-point format. Something like 34 digits of precision.