The day after the first Wednesday of every month - was Re: London.pm Meeting - April 5th
Chisel Wright
chisel at herlpacker.co.uk
Wed Mar 28 12:23:48 BST 2007
On Wed, Mar 28, 2007 at 12:01:35PM +0100, Peter Corlett wrote:
> On Tue, Mar 27, 2007 at 05:57:40PM +0100, Ash Berlin wrote:
> [...]
> > $meeting = $today if $today->day eq 'Thursday' and $today->dayOfMonth >=
> > 2 and $today->dayOfMonth <= 8;
>
> That can be fairly safely simplified to:
>
> $meeting = $today if $today->day eq 'Thursday' and $today->dayOfMonth <= 8;
No it can't. Yours passes for Thursday 1st - which could never be the
Thursday after the first Wednesday...
--
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/
All complaints must be submitted in writing
on the back of a ten pound note.
More information about the london.pm
mailing list