$num = 5; $zero_padded = sprintf "%02d", $num; print "$zero_padded\n"; [download]
-Blake
In reply to Re: Ok, here's an easy one by blakem in thread Zero padding numbers (was: Ok, here's an easy one) by glickjd