Thanks all. The ENV var is indeed the best way.
On 2/7/06, Frank Wiles <[EMAIL PROTECTED]> wrote:
On Tue, 7 Feb 2006 06:58:24 +0100Daniel McBrearty <[EMAIL PROTECTED]> wrote:> If I have a library which is used for both mod_perl and standard cgi
> processes, and I want to know at runtime which, how
On Tue, 7 Feb 2006 06:58:24 +0100
Daniel McBrearty <[EMAIL PROTECTED]> wrote:
> If I have a library which is used for both mod_perl and standard cgi
> processes, and I want to know at runtime which, how can I do that?
The environment variable $ENV{MOD_PERL} should be set if it is
running unde
Daniel McBrearty wrote:
If I have a library which is used for both mod_perl and standard cgi
processes, and I want to know at runtime which, how can I do that?
does ARGV[0] tell you? I'd expect it to be 'httpd' for apache/modperl.
If I have a library which is used for both mod_perl and standard cgi
processes, and I want to know at runtime which, how can I do that?
thanks
Daniel-- Daniel McBreartyemail : danielmcbrearty at gmail.comwww.engoi.com : the multi - language vocab trainerBTW : 0873928131