perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject [Fwd: MODPERL2 definition not defined]
Date Mon, 11 Nov 2002 09:51:37 GMT
Thanks for the forward Gary.

That's a bummer. We haven't had a test for this one and it certainly 
fails. I doubt this can be solved using IfDefine :(

Once <Perl> sections will be fully working the following will probably do:

     <Perl >
         use Apache::ServerUtil;
         unless (Apache::exists_config_define("MODPERL2")) {
                 require Some::ModPerl1::Module;

-------- Original Message --------
Subject: MODPERL2 definition not defined
Date: Wed, 6 Nov 2002 11:33:48 +0000
From: Gary Benson <>



The technique presented in 
doesn't work with mod_perl 1.99 in the server config files.  The perl
code sample in the document (Apache::exists_config_define("MODPERL2"))
works, but <IfDefine MODPERL2> doesn't.

This is because <IfDefine> interpretation happens as the file is
parsed; mod_perl is defining MODPERL2 in a "pre_config" hook, which
happens after the file has been parsed, but before it has been


[ ][ GnuPG 85A8F78B ][ ]


Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message