Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

PerlSetVar to empty

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


aw at ice-sa

Oct 14, 2008, 7:03 AM

Post #1 of 2 (452 views)
Permalink
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.


perrin at elem

Oct 14, 2008, 9:53 AM

Post #2 of 2 (419 views)
Permalink
Re: PerlSetVar to empty [In reply to]

On Tue, Oct 14, 2008 at 10:03 AM, André Warnier <aw [at] ice-sa> 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

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.