|more useful options|
PerlSetVar and PerlPostReadRequestHandlerby olus (Curate)
|on Dec 07, 2007 at 16:05 UTC||Need Help??|
olus has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to read a variable, that was set on the apache2 conf with PerSetVar, on a PerlPostReadRequestHandler, but so far all my tries failed.
I do see the variable when accessing it from the requested page.
A snipet of the post read request handler code:
When printing the %ENV I see AM_I_SET as 'Yes' but VAR is undef.
On the requested page I have:
The resulting web page will correctly display the value of 'var' and undef on %ENV.
I've been browsing the mod_perl2 docs, the Practical mod_perl book and searching the monastery and the web, but still haven't found the solution.
So, is it possible to access variables set with PerlSetVar from within the early handlers (those other than the final script)? How? What am I not doing?