perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@ectoplasm.org>
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,
>   http://snipurl.com/monw. 
> 
>   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
<Perl>
  @LogFormat = ( qq("[%h]" hostname), qq("[%u]" url) );
  @CustomLog = ( qq(logs/hostname hostname), qq(logs/url url));
</Perl>

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

<perl>
@Directive = ( (a), (b) );
</perl>

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
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

Mime
View raw message