in reply to server-parsed CGI output?
If you're willing to let the Perl code do the include processing, however, you may wish to use HTML::Mason or HTML::Template or some other such module.
-- Chip Salzenberg, Free-Floating Agent of Chaos