Dave Rolsky wrote:
On Wed, 8 Dec 2004, Arshavir Grigorian wrote:
I have tracked this down and it appears that somewhere deep in the template processing, TT is doing an 'eq' on a DateTime::Duration object and that's throwing an exception.
This seems like it could be a general problem with TT. I wonder why it's using 'eq'. Maybe it should be overload-aware and using something like Scalar::Util::refaddr.
Thanks.
I am not sure how to be overload-aware, but I just emailed a little patch to TT, which fixes the issue. I hope it does not break anything else, which I don't think it will.
- my $atroot = ($root eq $self); + my $atroot = ((ref ($root) eq ref ($self)) && ($root eq $self));
Arshavir