Marco Marongiu wrote: > NAME > Date::Iterator - Iterate over a range of dates
Nice! > $i = Date::Iterator->new( from => [2003,12,1], to => [2003,12,10] ) As a matter of convenience, can I suggest that in addition to list references you also allow dates to be specified as strings? > $i = Date::Iterator->new( from => '2003/12/1', to => '2003/12/10' ) Something like this should do the trick: $date = ref $date eq 'ARRAY' ? $date : [ split(/\D+/, $date) ]; If you split on any non-digit characters then it allows for different formats like '2003/12/1', '2003-12-1', '2003 12 1' and so on. Cheers A