How can I use arbitrary length integers in Perl?
问题 Is there any standard way to use integers of arbitrary length in Perl? I am working on code that generates x64 assembly for tests, and I'm tired of manipulating 32 bits at a time. I'm using Perl 5.10.0, for what it's worth. 回答1: If you only want to use big integers, you can use the bigint , which you can scope to a file: use bigint; or just a limited scope: { use bigint; ...; } If you need big floating point numbers as well as big integers, you can use the bignum pragma in the same way.