Help for this page

Select Code to Download


  1. or download this
    $int = 5; printf "%0" . $int . "i", $myInt;
    
  2. or download this
    use constant COLWIDTH => 5;
    $int = 5; printf "%0" . COLWIDTH . "i", $myInt;