RE: Perl year
by "Brian A. Sayrs" <sayrs(at)southwindsolutions.com>
|
| Date: |
Wed, 28 Jun 2000 17:27:41 -0700 |
| To: |
"'Shaun L. Sides'" <arch(at)charter.net>, "hwg-techniques(at)mail.hwg.org" <hwg-techniques(at)mail.hwg.org> |
| |
todo: View
Thread,
Original
|
|
-----Original Message-----
From: Shaun L. Sides [SMTP:arch(at)charter.net]
Sent: Wednesday, June 28, 2000 3:54 PM
To: hwg-techniques(at)mail.hwg.org
Subject: Re: Perl year
<snip>
fwiw, I normally initialize localtime() only once at the beginning of=20
the prog, since you get a different result each time you initialize the=20
function (even if only by a couple of milliseconds).
<snip>
Alternatively, you can use $^T which is the time the script started. It =
doesn't change any time during the script, so you can do it at any time:
@now =3D localtime($^T);
And it saves a keystroke. :)
Brian A. Sayrs
Owner, Southwind Solutions
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.