in reply to Meditations On HTML In Perl
What you are describing is one of the main reasons I abandoned hacked in-house templating tools and started using Template Toolkit. I have not yet found any situation that Template Toolkit can't handle without resorting to HTML embedded in the Perl code (or Perl embedded in the template). If you give an example of a problem you've faced, we could suggest ways to solve it with various templating tools.