in reply to Representing a single-digit number as two-digits

sprintf("%02d",$val); # perldoc -f sprintf, if you have perl5. man perlfunc if you have perl4 or below.
  • Comment on RE: Representing a single-digit number as two-digits