in reply to server-parsed CGI output?

This is an Apache question. Please read your Apache docs.

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