Jeff Tillotson wrote:
>
> I have been searching for a way to do this and have not had any luck.
>
> I am using localtime() to determine the day of the month. I need to
> make sure the variable it returns will always be 2 digits and padded
> with zeros. For example currently it is like:
> $var = (
Thanks for everyone's quick response to my query.
regards,
Jeff
Jeff Tillotson wrote:
Greetings,
I have been searching for a way to do this and have not had any luck.
I am using localtime() to determine the day of the month. I need to
make sure the variable it returns will always be 2 digits and
Jeff Tillotson wrote:
Greetings,
I have been searching for a way to do this and have not had any luck.
I am using localtime() to determine the day of the month. I need to
make sure the variable it returns will always be 2 digits and padded
with zeros. For example currently it is like:
$var
>
> Greetings,
> I have been searching for a way to do this and have not had any luck.
>
> I am using localtime() to determine the day of the month. I need to
> make sure the variable it returns will always be 2 digits and padded
> with zeros. For example currently it is like:
> $var =
perldoc -f sprintf
This function will do what you want.
-Original Message-
From: Jeff Tillotson [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 12:36 PM
To: [EMAIL PROTECTED]
Subject: fixed width variable
Greetings,
I have been searching for a way to do this and have not had
Jeff Tillotson wrote:
> Greetings,
> I have been searching for a way to do this and have not had any luck.
>
> I am using localtime() to determine the day of the month. I need to
> make sure the variable it returns will always be 2 digits and padded
> with zeros. For example currently it is like