On Fri, 19 Dec 2003, Simon Cozens wrote: > [EMAIL PROTECTED] (Marco Marongiu) writes: > > my $i = Date::Iterator->new( from => [2003,10,3], to => [2003,11,10] ) ; > > while (my $day = $i->next) { ... } > > Marco, in case you're getting discouraged, I think there's certainly > a place for Date::Iterator; I like it a lot, and I *really* like modules > in the "modular" tradition that do one thing and one thing well, rather > than modules in the "library" tradition that do everything to a reasonable > degree.
I agree, that's why the DateTime project is made up of many different modules, each of which addresses a specific area. But the difference between the DateTime modules and Marco's module is that the DateTime modules are specifically designed to work _together_. The biggest problem with the date & time code on CPAN outside the DateTime space is that while there are many problems solved, everybody has a slightly different API, so it's hard to chain a set of modules together to solve bigger problems. With the DateTime modules, you can pick and choose the pieces you need, and still be sure that in the future, if you need to do more, you can easily integrate other DateTime modules into your code. I think that's far more modular than anything else out there. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/