Vladimir S. Tikhonjuk wrote:
> Philip M. Gollucci пишет:
>
>> Vladimir S. Tikhonjuk wrote:
>>
>>
>>> I set in httpd.conf variable like: PerlSetVar var test;
>>>
>>> How can I get it in the startup.pl script ?
>>>
>>>
>> http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetVar_
>>
>> You might want to read and re-read and re-read and re-read ....
>> The 2.0 Users Guide here:
>> http://perl.apache.org/docs/2.0/user/
>>
>> HTH
>>
> 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!
http://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_request_
But that doesn't help you either.
httpd.conf:
PerlSetEnv var test
startup.pl:
print STDERR "test => $ENV{test}\n"
or you might look at
bash: export var='test' / tcsh: setenv var test
httpd.conf:
PerlPassEnv var
--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night."