Matthew wrote:
> The documentation on D::E::Recurrence isn't helping me much. What am I
> doing wrong here?
> 
> my $dt_start = DateTime->new( year => 2007,
>    month => 1, day => 15, hour => 11);
> 
> my $daily_at_10_30 = DateTime::Event::Recurrence->daily(hours => 10,
>    minutes => 30);
> 
> for(my $i = 0; $i < 5; $i++)
> {
>     print $daily_at_10_30->next($dt_start)->datetime . "\n";
> }

I don't use that module so my advice might not be worth much, but it
looks like you might need to replace $dt_start on each loop:

  my $today = $dt_start;
  for (...) {
      $today = $daily_at_10_30->next($today);
      print $today->datetime . "\n";
  }

- Philip

Reply via email to