in reply to Re^2: mod_perl and multi user environment - clashes with other users's data
in thread mod_perl and multi user environment - clashes with other users's data
This module's handler emulates the CGI environment, allowing programmers to write scripts that run under CGI or mod_perl without change. Unlike Apache::Registry, the Apache::PerlRun handler does not cache the script inside of a subroutine. Scripts will be "compiled" every request. After the script has run, it's namespace is flushed of all variables and subroutines.
The Apache::Registry handler is much faster than Apache::PerlRun. However, Apache::PerlRun is much faster than CGI as the fork is still avoided and scripts can use modules which have been pre-loaded at server startup time. This module is meant for "Dirty" CGI Perl scripts which relied on the single request lifetime of CGI and cannot run under Apache::Registry without cleanup.
It works because scripts are compiled at every request. I don't recommend using PerlRun unless you're trying to run an existing CGI script in mod_perl. If you're writting a script for mod_perl, you shouldn't use PerlRun.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: mod_perl and multi user environment - clashes with other users's data
by rsennat (Beadle) on Dec 02, 2005 at 18:46 UTC |