Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Prepending 0's to 1000by Anonymous Monk |
on Oct 16, 2004 at 21:45 UTC ( [id://399827]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How can I prepend 0's on a number to get to the 1000th place? Like if I had the number 100, it would write 0100. If the number was 7, it would be 0007. And if the number was 8010, no 0 would be added.
Back to
Seekers of Perl Wisdom
|
|