in reply to Prepending 0's to 1000
You will find good use of the printf/sprintf functions.
perl -e "printf('%04d', 33)"
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (544 votes). Check out past polls.