In the simple case (known methods/no side effects), then one of Uri's solutions will work.
For the case of unknown methods, a two pass solution might work: collect the method names from the template, then call them with $object->$method() syntax, then interpolate the results. For something yet complicated, Template::Toolkit can handle objects in templates. See http://search.cpan.org/~abw/Template-Toolkit-2.22/lib/Template/Manual/Variables.pod for the details. If you can't change the template language, then preprocessing what you have to make it TT-compatible is another option. TT is big, so make sure this isn't a case of using a bazooka to swat a fly. --kag _______________________________________________ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm