Garrett, Philip (MAN-Corporate) wrote:
I also had trouble with the lazyinit module not supporting overloaded operators, e.g. $dt1 > $dt2.To fix, I added this to the main LazyInit package. Using the method names as strings didn't work -- I guess overload doesn't like AUTOLOAD. use overload ( 'fallback' => 1, '<=>' => sub { shift->_compare_overload(@_) },
We're really getting way beyond the scope of DT::LI here .. it's supposed to be completely simple front-end to creating unvalidated DateTime objects.
If you want to do comparisons, use the real functions rather than the overloads, or create full DateTime objects.
Cheers! Rick Measham
