perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <>
Subject Re: Apache2::PerlSections patch
Date Sat, 18 Feb 2006 00:04:24 GMT
Frank Wiles wrote:
>   Hi Everyone, 
>   Back in November Randal mentioned he was having trouble with his
>   <Perl> sections.  See this message from the archives,
>   Attached is a small patch that I believe fixes the issue. 

Sorry, but it doesn't fix the issue.

For reference, *this* works as expected
  @LogFormat = ( qq("[%h]" hostname), qq("[%u]" url) );
  @CustomLog = ( qq(logs/hostname hostname), qq(logs/url url));

The important thing to understand, is that in the general case, in <Perl>
sections, using

@Directive = ( (a), (b) );

Translate to httpd.conf lingo into

Directive a
Directive b

And not into:

 Directive a b

The only notable exception to this is in nested constructs, like $VirtualHosts
and such, where you can often use [(a), (b)] interchangeably with "a b".

Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

View raw message