in reply to Is it possible to mimic mod_perl like startup for CGI?
With the standard CGI model, where your web server forks off a process to run an external program, it's possible to do such a thing, but it seems really tricky and fragile. The web server doesn't necessarily know that it'll run a Perl program and the perl binary it launches almost definitely doesn't know that it would have subroutines already in memory somewhere. Even if it did, it would have to do a substantial amount of bookkeeping to bring that code in to the rest of the program.
Perhaps CGI::FastCGI would work more to your liking.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is it possible to mimic mod_perl like startup for CGI?
by sauoq (Abbot) on Oct 06, 2005 at 22:43 UTC |