On Monday, January 13, 2003, at 11:51 AM, Dave Rolsky wrote: > Actually, I have some ideas for this. Something like: > > use DateTime; > use DateTime::Parse::MySQL; > > my $dt = DateTime->from_mysql_datetime( $mysql_dt ); > > So the parsing modules would just add methods to the DateTime > namespace. Ah, the decorator pattern made easy. This once again shows why many design patterns are almost meaningless in Perl. ;-) David -- David Wheeler AIM: dwTheory david@wheeler.net ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: Theory@jabber.orgThread Previous | Thread Next