Perl & The Leap Year Day Babies

barbie on 2008-02-29T17:43:39

The Register today (29th Feb 2008), has highlighted an all too common issue for several thousand people. Their birthdays fall on the leap day of a leap year. To emphasise their plight they have written a snippet of perl code to show how easy it is to get the number of days in a year. Obviously it might be a little more robust if they use something like DateTime, but the general rule is there. They have now taken on Toys R Us and Microsoft to fix the problem in their websites and software respectively. I wish them luck :)


Nice idea, crap code

btilly on 2008-02-29T22:33:28

And their email submission form has been disabled by someone, probably because it was too useful to spammers, so I can't easily tell them that their prototype isn't doing what they think it is doing, and their code could be far more clearly written.