On Aug 2, 2006, at 7:18 AM, Vladimir S. Tikhonjuk wrote:
Well, nice advise, but where can I get $r ( Apache2::RequestRec )
variable in startup.pl script ?
In handler script - everything is O.K. But startup.pl!
You can't.
Apache2::RequestRec is a per-request variable.
startup.pl/httpd.conf are server configurations.
There is no $r, hence no ApacheRequestRec at that time.
You might want to look into
Apache2::ServerRec
http://perl.apache.org/docs/2.0/api/Apache2/ServerRec.html
Apache2::ServerUtil
http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html