XP is just a number | |
PerlMonks |
Representing a single-digit number as two-digitsby nine9 (Novice) |
on Dec 30, 1999 at 14:45 UTC ( [id://1573]=perlquestion: print w/replies, xml ) | Need Help?? |
nine9 has asked for the wisdom of the Perl Monks concerning the following question:
OK... I finally worked out how to get the date at about 11pm (GMT) last
night...before I looked here! Grrrr...! (See
Currdate.pl)... The problem now is that if, say, the time is 11:05am, it will say 11:5. How do I tell it to make the 5 into 05. (e.g. in GW-BASIC one could use the print using ##</T>> statement...) ~nine9
Back to
Seekers of Perl Wisdom
|
|