On Oct 29, 8:22 pm, [EMAIL PROTECTED] (Julie A. Bolduc) wrote:
> I am trying to format some numbers so single digit numbers are converted to
> 2 digit numbers and here is the code I am working with right now. For some
> reason, the very last number, $b5, ends up as a 3 digit number instead of a
>
try using sprintf instead of printf.
i think the extra 1 you are getting on the end it just a true return.
-Original Message-
From: Julie A. Bolduc [mailto:[EMAIL PROTECTED]
Sent: 30 October 2007 00:23
To: beginners@perl.org
Subject: printf problem
I am trying to format some numbers so
I am trying to format some numbers so single digit numbers are converted to
2 digit numbers and here is the code I am working with right now. For some
reason, the very last number, $b5, ends up as a 3 digit number instead of a
2 digit number even if I start it with a single digit number. If I