in reply to printf not behaving as expected
on my 32-bit perl 5.8 produces:my $v = 123456789012345; printf "%d %ld %u %15.0f %s\n", $v, $v, $v, $v, $v;
So it looks like %s and %15.0f are worth a shot.-1 -1 4294967295 123456789012345 123456789012345
Later versions of Perl on certain platforms might further support %ll and %q (C "long long" et al type, typically 64-bit integers) according to sprintf.
|
|---|