Re: crashing on the full moon
[email protected] (Chris Dolan)
| Newsgroups | perl.fwp |
|---|---|
| Message-ID | <[email protected]> |
On Jan 12, 2005, at 3:53 PM, Yitzchak Scott-Thoennes wrote:
> On Fri, Jan 07, 2005 at 06:59:35PM -0800, Josh Goldberg wrote:
>> A (java programming) coworker presented this challenge while
>> discussing
>> a hypothetical situation:
>>
>>> * Chris troubleshoots and sees that David (in a moment of sheer
>>> insanity) coded the site to crash at 5:42pm on every full moon (do I
>>> hear a Perl Monger side say there is a Perl library for just such a
>>> thing -- and it's only 2 lines?).
>
> Acme::Apache::Werewolf is probably something like what he wants.
>
Haha! Sweet, I like the embedded lyrics in that module. Here's a
solution in one line:
use Astro::MoonPhase;gmtime=~/17:42:/&&abs((phase time)[2])<1&¨
Chris
--
Chris Dolan, Software Developer, www.chrisdolan.net
Public key: http://www.chrisdolan.net/public.key
PGP.sig
(application/pgp-signature, 186 B) - not displayed