On Thu, 14 Jun 2001, Mark Folse wrote:

> I started out doing the same thing on my NT box many moons ago, and
> found this more reliable and easier to manage:
>
> ($day,$month,$date,$time,$year)=split (/ /,localtime);

localtime can also be used directly in a list context, for more
flexibility:

my ($day, $month, $year) = (localtime)[3,4,5];

You just have to remember to add 1900 to the year value!

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
He knows not how to know who knows not also how to unknow.
                -- Sir Richard Burton


Reply via email to