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.
In reply to Re: Is it possible to mimic mod_perl like startup for CGI?
by chromatic
in thread Is it possible to mimic mod_perl like startup for CGI?
by BMaximus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |