in reply to mod_perl odd behaviour with system() or exec() call or backticks
I believe that what you are seeing is due to this persistence, so you need a handler that will recompile the script each time a requests is handled by Apache. This PerlResponseHandler is ModPerl::PerlRun.
See Re: mod-perl configuration under Apache2.
Last note, mod_perl is really nice once you understand that it a way to hook deeply into Apache's requesting life cycle to facilitate an application, but it'd be easier for you to port it to a pure CGI environment that doesn't try to be smart with persistence. CGI is much more akin to running it at the command line - just be careful of %ENV not being what you expect it to be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mod_perl odd behaviour with system() or exec() call or backticks
by pucek (Initiate) on Jul 11, 2014 at 09:12 UTC | |
by perlfan (Parson) on Jul 11, 2014 at 14:40 UTC |