Furthermore note that if numbers do go over 2 GB, Perl automatically upgrades you to floats, which can represent integers precisely up to 52 bits or so. Don't put undue trust in this because some floating point routines may introduce rounding errors, and the number is not always displayed exactly, but still floating point is not immediately worse than integer arithmetic.