in reply to printf not behaving as expected

Are you using a 32-bit Perl, or a Perl with 32-bit integers? If so, what happens if you use the pattern %ld for that field? (You can always interpolate the variable directly instead of using printf, of course.)


Improve your skills with Modern Perl: the free book.