We had some template code that did: [% IF object.size %] where we knew that sometimes "object" has a "size" method and sometimes not. Of course, if there is not a "size" method it falls back to the TT VMethod (in this case the hash "size" vmethod).
My fix was [% IF object.can( 'size' ) && object.size %], but I wonder if anyone is really out there counting the keys in their hash-based objects. Would it break the world if the vmethods didn't work on blessed data? I suspect, at this point in time, it would. -- Bill Moseley [email protected]
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
