use warnings; use strict; print sprintf("%04d", 7); [download]
In reply to Re: Prepending 0's to 1000 by pg in thread Prepending 0's to 1000 by Anonymous Monk