On 01/13/2013 09:45 AM, Joel Grow wrote:
> What's your recommendation to solve this? I simply want to iterate
> through N sequential days of a calendar (eg, 90 consecutive days,
> starting March 17).
I'd have simply started with DateTime:
use strict;
use warnings;
use DateTime;
my $date = DateTime->new( year => 2012, month => 3, day => 17 );
for (1..90) {
print $date->ymd, "\n";
$date->add( days => 1 );
}
_____________________________________________________________
Seattle Perl Users Group Mailing List
POST TO: [email protected]
SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
MEETINGS: 3rd Tuesdays
WEB PAGE: http://seattleperl.org/