On Monday, January 13, 2003, at 11:51 AM, Dave Rolsky wrote:
Actually, I have some ideas for this. Something like:Ah, the decorator pattern made easy. This once again shows why many design patterns are almost meaningless in Perl. ;-)
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.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]