> > > I would find this handy if we could do something like that : > > > > > > use DateTime; > > > my $d = DateTime->new(...); > > > my $today = $d->today; > > > > > Hmm, I'm not too big on constructors being called on an object, as opposed > > to a class. You'd expect different behavior at least. For example, if I > > called today() on an object, I'd expect it to return the same date, > > truncated to the day.
How about: use DateTime; my $dtclass = "DateTime"; my $today = $dtclass->today -J --
