On Thu, 2006-10-05 at 11:56 -0700, Craig Tussey wrote:
> With only Perl, a different Perl interpreter instance
> is started for each CGI request.   The instances don't
> know about each other and dataspaces are unique to an
> instance.
> 
> How does Perl with mod_perl handle this.

In exactly the same way.  The interpreters are in separate processes or
threads and share nothing.  The only exception is if you run mod_perl 2
using threads and intentionally share some variables.

> Are there any
> important differences with the only Perl situation.

Not in terms of separation between instances.  There are issues with
code that doesn't clean up after itself (e.g. using global variables
instead of lexical ones) since the interpreters do not exit after each
request the way they do in CGI.

- Perrin

Reply via email to