in reply to Integration of SQL Search Results Into An Existing HTML Template

Your mission is easily accomplished by simply blending the HTML markup and the cached search result data together. You do this by reading the two files either simultaneously or successively and incorporating the contents of one into the other. This is a pretty standard scripting task, so it shouldn't be difficult.

(It's Perl, not PERL.)