in reply to A different approach to CGI

Welcome to the wonderful world of templates :) Have a look at HTML::Template, Template or Petal; then read Choosing a Templating System by perrin.

Ciao, Valerio