in reply to Re^2: How to convert bigint to bytearray in perl
in thread How to convert bigint to bytearray in perl

Can't locate object method "to_bytes" via package "Math::BigInt"

The to_bytes method was added in Math::BigInt 1.999807, which was distributed with Perl 5.28. You should be able to install the latest version from CPAN.