Re: 2 digit numeric

2001-07-17 Thread iansmith
On Wed, 18 Jul 2001, Arvind Baldeo wrote: > I need to output my result as two digit numeric. Try: printf "%02d", $new; Look up printf and sprintf in the perlfunc manpage. -- Ian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

2 digit numeric

2001-07-17 Thread Arvind Baldeo
Hi, I need to output my result as two digit numeric. eg $curr = 00; $hour =4; $new=$curr * $hour; print $new; In the above eg, my result is $new equals to 4. I need it to be displayed as 04. Or how to convert the digit 4 to string 04? Rgds Arvind -- To unsubscribe, e-mail: [EMAIL PROTECTE