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 +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 under mod_perl.

---------------------------------
   Frank Wiles <[EMAIL PROTECTED]>
   http://www.wiles.org
---------------------------------




--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

Reply via email to