题
如何在mod_perl下询问我的perl程序是否在mod_perl?
下运行我正在沿着全局变量或环境变量的线条思考。
我只是困扰mod_perl>= 2。
解决方案 2
http://perl.apache.org/docs/2.0 /用户/编码/编码.html #national_variables 表示将有一个环境变量生成generacicetagcode,因此您可以使用表达式测试
exists $ENV{MOD_PERL}
. 不隶属于 StackOverflow
题
如何在mod_perl下询问我的perl程序是否在mod_perl?
下运行我正在沿着全局变量或环境变量的线条思考。
我只是困扰mod_perl>= 2。
解决方案 2
http://perl.apache.org/docs/2.0 /用户/编码/编码.html #national_variables 表示将有一个环境变量生成generacicetagcode,因此您可以使用表达式测试
exists $ENV{MOD_PERL}
.