perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: <perl> sections and A-T autoconfig virtual host expansion magic
Date Thu, 08 Sep 2005 00:04:12 GMT
Philippe M. Chiasson wrote:
> 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]);

Hmm, so now ['foo', $bar] is Ok for TAKE2? I though you said it had to be 
"foo $bar";

and how does it look as a part of %VirtualHost?

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

Cool!

If that's not too much work, mind to add some tests so it's easier to see 
what works?

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://mailchannels.com

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


Mime
View raw message