Re: $r->subprocess_env('REQUEST_URI') returns undef ?

Tosh Cooey <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Twelve Hundred Group LLC
Message-ID <[email protected]>
It's probably obvious, but $r kinda scares me.  I guess I saw 
subprocess_env in the docs and so that's where I stopped... What a 
couple centimeters more would have done...

Thank-you David!!

Tosh


Ihnen, David wrote:
> At the risk of being kind of obvious, did you try $r->uri?
> 
> http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_uri_
> 
> David
> 
> -----Original Message-----
> From: Tosh Cooey [mailto:[email protected]] 
> Sent: Friday, January 15, 2010 10:42 AM
> To: [email protected]
> Subject: $r->subprocess_env('REQUEST_URI') returns undef ?
> 
> From:
> http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_env_
> 
> subprocess_env
> 
> Get/set the Apache subprocess_env table, or optionally set the value of 
> a named entry.
> 
> When the $key argument (string) is passed, it returns the corresponding 
> value (if such exists, or undef. The following two lines are equivalent:
> 
>    $val = $r->subprocess_env($key);
>    $val = $r->subprocess_env->get($key);
> 
> 
> Ok... Seems simple enough...
> 
> In my module if I do the following:
> 
> $r->subprocess_env;
> my $uri = $ENV{REQUEST_URI};
> 
> The I get the URI.
> 
> But if I change the above to:
> 
> my $uri = $r->subprocess_env('REQUEST_URI');
> 
> I get undef.
> 
> Confused.
> 
> Tosh
> 

-- 
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.