You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by André Warnier <aw...@ice-sa.com> on 2008/10/14 16:03:11 UTC
PerlSetVar to empty
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 <Location>, 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
Posted by Perrin Harkins <pe...@elem.com>.
On Tue, Oct 14, 2008 at 10:03 AM, André Warnier <aw...@ice-sa.com> wrote:
> , but in a a specific <Location>, 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