http://qs1969.pair.com?node_id=11155012


in reply to bignum usage?

Replace

use Math::BigRat; # Useless use bignum; # Uses M::BigInt and M::BitFloat

with

use bignum upgrade => "Math::BigRat";
or
use bigrat;

I don't think they're equivalent -- the former initially creates M::BigInt objects and switches to M::BigRat when necessary, but I think the latter uses M::BitRat objects from the start -- but they have the same result here.