PerlSetVar to empty - modperl

This is a discussion on PerlSetVar to empty - modperl ; 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" , ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: PerlSetVar to empty

  1. 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 , 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.


  2. Re: PerlSetVar to empty

    On Tue, Oct 14, 2008 at 10:03 AM, André 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


+ Reply to Thread