in reply to RE: Date munging suddenly broken
in thread Date munging suddenly broken

It's not a big deal, but if it were me, I wouldn't want to pollute my code with a bunch of unnecessary lexicals. I prefer to use array slices. So those two localtime calls would become:
my $wday = (localtime $now)[6]; .... my($mday, $mon, $year) = (localtime($now-$then))[3..5];
Which, in my opinion, is cleaner.