try:
$month
= 7;
$month
= sprintf("%02d",$month);
This may seem like a simple question, but I have a variable $month=7 but I want to represent it as $month=07. How is this done. I am not sure what to search on to find out how to do this, hence I am here.
|
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs