use integer; my $MAXQUAD = 9223372036854775807; # equals 0x7fffffffffffffff for (my $i = 0; $i <= $MAXQUAD; $i++) { printf("\n %d", $i); } exit;