in reply to execute perl script in html

I've used Perl calls within HTML extensively on my Linux web site. The Perl scripts work when located anywhere in your web domain -- not just cgi-bin. I am able to use 'include virtual' and pass parameters to the script, which reads the parameters via the $ENV{'QUERY_STRING'} command.

<html>
<body>
<!--#include virtual="/counter.pl?$param" -->
</body>
</html>

However, I haven't been able to get 'include virtual' to work from inside a table, so I use 'exec cmd' instead, and forego parameter passing>/p>

<html>
<body>
<table>
<!--#exec cmd="/counter.pl" -->
</table>
</body>
</html>