[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PerlSetVar



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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.