in reply to Best tools for simple WebUI
It sounds like you could benefit from a template module such as Template or HTML::Template. There are also many more on CPAN if you just search for them.
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (182 votes). Check out past polls.