Help for this page
Select Code to Download
Select
or
download this
$string = ('0' x ($wanted - $current)) . $string;
Select
or
download this
sprintf "%0${len}d", $number;