in reply to Number Padding

Sure, just use sprintf.
my $padded = sprintf "%02d", $num;