I'm not sure of how the DateTime::Set iterator should 
behave.

Would you give me an example? I've got a sketch:

if ( $set->is_infinite ) {
    warn "this is an infinite set";
    print "first date is ", $set->min;
    print "second date is " ....
    print "last date is ", $set->max;
}
else {
    while ( .... ) {
        print "date: " ....
        ... next ...
    }
}

----
Note: Set::Infinite iterates using 
  ($head, $tail) = $set->first;
where $head is the first date, and $tail is the 
remainder of the set. The set is not modified by this 
operation.

Another option would be:
  $head = $set->next;
where $head is the first date, and it is removed from 
the set.

- Fl�vio S. Glock


Reply via email to