Web Development - CGI Scripting To enhance the speed of CGI execution, various in-server modules have been written. For apache, mod_perl exists, that allows a Perl program to be "compiled" only once, and remain active between user invocations. This allows supporting persistent connections to databases and other state information.