I suggest Template::Toolkit (
http://search.cpan.org/~abw/Template-Toolkit-2.27/) Most of my web apps
are also relatively light on HTML, for which T::T works great. And to your
well-founded concern, T::T makes it pretty easy to keep separate logic and
presentation.
Although keep in mind that is a
I am a very long term user of the famous CGI module. My biggest project is
www.algebra.com. There are al;so many others.
Let me mention that my use of perl on the web, a very long time ago,
started out with Embperl.
At that time, I thought that use of HTML templates with perl code sprinkled
in is