Try CGI::SSI or CGI::SSI_Parser, or look at this node for more ideas.
In reply to Re: Re: SSI within a Perl CGI script by perrin in thread SSI within a Perl CGI script by jkspl