Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev
[MP2 BUG] @Include issues in PerlSection
 

Index | Next | Previous | View Flat


sreeji_k at yahoo

Jul 6, 2003, 6:22 AM


Views: 526
Permalink
[MP2 BUG] @Include issues in PerlSection

Hi

It looks like when I @Include a file from a <Perl>
section, the <Perl> sections in that file get
processed first, though there are other stuff before
the <Perl> sections.
Following is an example (simplified from my real-life
config) :

$ cat /tmp/test.conf
<Perl >
@Include = "/tmp/testvar.conf";
</Perl>
Listen 43499

$ cat /tmp/testvar.conf
PerlPassEnv MY_TEST_VAR
<Perl >
print "MY_TEST_VAR = $ENV{MY_TEST_VAR}\n";
</Perl>

$ httpd -X -f /tmp/test.conf
[Sun Jul 06 06:15:09 2003] [warn] Syntax error at
/tmp/testvar.conf:5 Use of uninitialized value in
concatenation (.) or string at (eval 3) line 1.

So when an Include is found, all perlsections in that
file are processed. However, as in the above case,
these <Perl> sections could be depending on the
directives defined previously in the file.
It works if I move the PerlPassEnv to test.conf, above
the <Perl> section.

Any thoughts ?

thx
Sreeji
(this is 1.99_10-dev on Linux, with httpd-2.0.45)

________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org

Subject User Time
[MP2 BUG] @Include issues in PerlSection sreeji_k at yahoo Jul 6, 2003, 6:22 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.