in reply to Range of numbers with 0 added for single digits.
Look to printf (or sprintf) in perlman:perlfunc, and note the effect of a zero after the '%' in the format string (e.g., "%02d").