> -----Original Message-----
> From: Metz, Bobby
> # Grab the year either via exec or via DateTime, your choice
> chomp(my $year = `date '+%Y'`);
> # --or--
> my $year = strftime('%Y',localtime(time));
My apologies, I said "using DateTime" above but I used a POSIX example instead.
:D
DateTime could be used this way:
my $dt = DateTime->now();
my $year = $dt->strftime("%Y");
