in reply to
Prepending 0's to 1000
The key to the sprintf/printf format is the leading 0 in the formating expression %04d. It's that simple. Sprintf and printf come from 'C' standard library functions.
Comment on
Re: Prepending 0's to 1000
In Section
Seekers of Perl Wisdom