in reply to Re^2: Help with Time
in thread Help with Time

As apl suggests, there are several modules on CPAN to manipulate dates and times. One is DateTime which you could use like this:
use DateTime; my $d = new DateTime(year => 2008, month => 3, day => 31); my $yesterday = DateTime->today()->add(days => -1); while (1) { my $year = $d->year; my $month = $d->month; my $day => $d->day; ... download file for $year, $month, $day ... last if ($d->ymd('/') eq $yesterday->ymd('/')); $d->add(days => 1); }

Replies are listed 'Best First'.
Re^4: Help with Time
by TheAnswer1313 (Initiate) on Apr 20, 2008 at 17:37 UTC
    Thanks I'll give that a try. The one its using right now is Time::Local i believe.