$tmpl->param($_    => $b() );
what's this? this gives me a syntax error. do you wanted to use a subroutine-reference instead? like main->can($b)?

In reply to Re^2: HTML::Template : How to separate code and html with lesser maintenance issues by tinita
in thread HTML::Template : How to separate code and html with lesser maintenance issues by sara2005

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":