in reply to Module Code Review
Other than that, here's a much simpler method for finding out yesterday:if (!($y % 4) and ($y % 100 or !($y % 400))) { ... }
use Time::Local; my $noon = timelocal(0,0,12, (localtime)[3,4,5]); my ($d,$m,$y) = (localtime($noon - 86400))[3,4,5];
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Module Code Review
by tye (Sage) on Sep 15, 2001 at 09:58 UTC |