in reply to number formatting
Using %010d in printf or sprintf will 0 pad them to a length of 10 (the leading 0 will pad them with zeroes and the remainder of the number is the length).
In Section
Seekers of Perl Wisdom
in reply to number formatting