I use mod_perl and embed Perl code into html page using
Embperl and
Mason instead of CGI. Those tools are more powerfull, flexible and secure than CGI. But if you need you can run your CGI scripts under mod_perl:
CGI to mod_perl Porting.
Good luck!
--------------------------------
SV* sv_bless(SV* sv, HV* stash);