>
>I need to make sure $day and $month are in 2-digit format so that wouldn't 
>work.
> At least, not anyway I'm presently familiar with.  I tried to use sprintf in
>there but it failed because of not enough arguments.

$day = '0' . $day if length($day) < 2;
$month = '0' . $month if length($month) < 2;

Hope this useful.

--
Jeff Pang
EMAIL: [EMAIL PROTECTED]  AIM: jeffpang

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to