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: <perl> sections and A-T autoconfig virtual host expansion magic
Date Wed, 07 Sep 2005 23:26:36 GMT
Stas Bekman wrote:
> Actually
> 
> <VirtualHost gozer>
> <Perl>
>   $PerlSetVar = "foo $bar";
> </Perl>
> </VirtualHost>
> 
> works. As I've later figured out thanks to Philippe's examples is that
> my problem was that I was calling:
> 
>   $PerlSetVar = ["foo", $bar],
> 
> which mod_perl has happily ignored or something... it didn't generate
> any errors. and I think it should.
> 
> I'm still not sure how to set several PerlSetVar entries.

@PerlSetVar = ("foo $bar", "fooz $otherbar");

or

@PerlSetVar = (['foo',$bar], ['fooz',$otherbar]);

> It's very confusing. And the worst thing is that things silently fail...

It doesn't silently fail for me:

<Perl>
$PerlSetVar = ['gozer','rules'];
</Perl>

$> t/TEST -start
Syntax error on line 93 of [mp2]/t/conf/extra.last.conf:
$parms->add_config() has failed: PerlSetVar takes two arguments
[  error]
server has died with status 255

But the attached patche makes it work as you'd expect too ;-)

--------------------------------------------------------------------------------
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