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:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://mailchannels.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to