Oh if it were that easy. PHP code does not seem work from within templates and my host dissallows html calls in php for security reasons.

What I have found works just fine in a php page is a system call

system( '/usr/bin/perl some_cgi.cgi' );

But this does not work in a template. My goal is to get the .cgi program to execute and diaplay in the body of the page.