Problems? Is your data what you think it is? | |
PerlMonks |
formatting integers for printingby newatperl (Acolyte) |
on May 14, 2001 at 00:52 UTC ( [id://80099]=perlquestion: print w/replies, xml ) | Need Help?? |
newatperl has asked for the wisdom of the Perl Monks concerning the following question:
I'm grabbing the date from localtime(time) and now I want to print it, however, I need all values of the dates to be 2 digits, for example I would like to print 04/09/01 instead of 4/9/1.
Is there a simple elegant way to do this? I could do this using a hash, but, is there any other better way?
Thanks.
Back to
Seekers of Perl Wisdom
|
|