Re: getting $date



>>>>> "ASU" == A Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx> writes:

ASU> use warnings;

ASU> my ($mday, $mon, $year) = (localtime)[3 .. 5];

ASU> printf "%2.2d/%2.2d/%4.4d\n", $mday, $mon + 1, $year + 1900;

Nothing wrong with your solution, but the one I proposed used only
information which could be gleaned from the perldoc entry for
localtime.

TMTOWTDI

Graham


.