in reply to Re^3: apache2 passing PERL5LIB environment to cgi
in thread apache2 passing PERL5LIB environment to cgi

Does it start a new perl instance on every cgi call?

The definition of CGI is start a new instance on every call, read input (form data or whatever) from STDIN, read headers from %ENV, write output on STDOUT.

  • Comment on Re^4: apache2 passing PERL5LIB environment to cgi

Replies are listed 'Best First'.
Re^5: apache2 passing PERL5LIB environment to cgi
by AndyZaft (Hermit) on Jun 15, 2010 at 13:41 UTC
    Erm... I guess I should've clarified, afaik when you are using mod_perl that gives you a built in interpreter in the apache server as a module so your apache instance doesn't have to call the external perl executable every time it encounters a call to a CGI written in perl.