http://qs321.pair.com?node_id=306675


in reply to Help with dates

Just use localtime:
my ($mday, $mon, $year, $wday) = (localtime)[3..6]; $mon += 1; $year += 1900;
Of course, this leaves you with a 4-digit year, but that's easy enough to fix:
$year =~ s/^\d\d//;
See perldoc -f localtime for more information.

Update: Modified to include $wday and perldoc reference.

If things get any worse, I'll have to ask you to stop helping me.