How can I check if PerlEx is running from within a script?
You can check if PerlEx is running from within a script by adding the following: if (exists $ENV{‘GATEWAY_INTERFACE’} and $ENV{‘GATEWAY_INTERFACE’} eq “CGI-PerlEx”) { … } This test actually indicates that the script has been cached by the PerlEx compiler. When scripts are running under PerlEx with no caching, i.e., the Interpreters registry entry is set to 0, this test will return false because PerlEx behaves just like regular CGI or Perl for ISAPI under this setting.