in reply to Zero padding numbers (was: Ok, here's an easy one)

See perldoc -f sprintf and man 3 printf my $num = sprintf "%02d", $some_number;

Makeshifts last the longest.