Arshavir Grigorian wrote:
DateTime::Duration obviously does not overload comparison operators, but where am I comparing anything ? Calling the years() method in the Perl code outside the template works fine.
Another problem is that the line numbers are incorrect (8 lines off). Line 28 in my template is a line of static HTML. I had to comment out everything to figure out the offending line. What's causing this?


Is the above TT syntax doing something behind the scenes?

The compiled version of that template will probably reveal what's really going on. If you set the COMPILE_DIR or COMPILE_EXT config options for the Template object (see the section "Caching and Compiling Options" in the Template::Manual::Config page), then TT will save the compiled version of your template, which is just Perl code.


Hope that helps...
Chad.


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to