You will find good use of the printf/sprintf functions.
perl -e "printf('%04d', 33)"
__OUTPUT__
0033
In reply to Re: Prepending 0's to 1000
by guha
in thread Prepending 0's to 1000
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |