John Siracusa wrote:
> Confusing subject, simple question:
> 
> <Location /foo/bar>
>   PerlSetVar  MyRoot "/foo/bar"
>   SetHandler  perl-script
>   PerlHandler MyModule
> </Location>
> 
> MyModule calls $r->dir_config('MyRoot') to get the "/foo/bar" path.
> 
> I want to ditch the  "PerlSetVar MyRoot" line because it will always have
> the same value as the "Location" directiv above it.  Is there a way MyModule
> can get "/foo/bar" using some other means?

I feel almost silly saying this, but did you look at $r->location?
http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_location

-- 
Michael Peters
Developer
Plus Three, LP

Reply via email to