PerlSetVar to empty

PerlSetVar to empty

am 14.10.2008 16:03:11 von aw

Hi.

Ref :
Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_jk/1.2.18 PHP/4.4.4-8+etch4
mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 configured --
resuming normal operations


This is a really silly question.
I have a configuration where at the global server level, I set

PerlSetVar myvar "somevalue"

, but in a a specific , I would like to reset this to

PerlSetVar myvar ""

However, when I do this, I get the following error restarting Apache

Starting web server (apache2)...Syntax error on line 196 of
/etc/apache2/sites-enabled/ska:
PerlSetVar takes two arguments, PerlSetVar
failed!

Anybody know how I can do this ?
is there a PerlUnsetVar myvar ??
or a PerlSetVar myvar undef ??

Note :

PerlSetvar myvar " " (one space)

works, but then it makes the test inside the module rather ugly.

Re: PerlSetVar to empty

am 14.10.2008 18:53:47 von Perrin Harkins

On Tue, Oct 14, 2008 at 10:03 AM, Andr=E9 Warnier wrote:
> , but in a a specific , I would like to reset this to
>
> PerlSetVar myvar ""

I've never done this, but did you try undef? Or maybe 0, if you just
want to test for true.

- Perrin