Hi all,

I have this PerlSetVar behaviour. Suppose to have:

        <Location /foo>
                SetHander perl-script
                PerlSetVar Something 0
                PerlResponseHandler MyModule
        </Location>

But in MyModule.pm, $r->dir_config('Something') returns an undef value instead
of 0 (zero). This happens on both mod_perl generations (I have Perl 5.8.1 with mp
1.29 and mp 1.99_10).
Also I've tried with:

        PerlSetVar Something '0'
        PerlSetVar Something "0"

My problem is that the my default value of 'Something' isn't 0 and 0 is a
possible value for my module. So, currently I have to code around for example
with:

        PerlSetVar Something none

in order to pass a correspondent 0 value.

Maybe it is a known behaviour, but... I've forgotten something in the docs about
it? :-)

I'm surprise of this, because in my Apache (1.x) C modules experience, TAKE1 (or
TAKE2) directive doesn't have the same behaviour returnig args also with 0
values.

by

        - Enrico

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to