On Thu, 9 Aug 2001, Yacketta, Ronald wrote:
> I do not get the 0 as in 09 , 08, 07 ,06 etc..
>
> what could I do to ensure that the $sec is _always_ 2 digits?
Precede your format specifier with 0#:
~$ perl -e 'printf("%02d\n", 6);'
06
~$ perl -e 'printf("%03d\n", 6);'
006
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Time flies like an arrow. Fruit flies like a banana.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]