Re: Real Directory

2005-07-10 Thread Geoffrey Young
Scott Penrose wrote: > Now it seems obvious, but I can't find a reference to get the real > directory of a URI. > Examples I have found on CPAN look something like this... > > my $uri = $r->uri; > $uri =~ s|[^/]+$||; > my $dir = $r->document_root .

Real Directory

2005-07-10 Thread Scott Penrose
Now it seems obvious, but I can't find a reference to get the real directory of a URI. Examples I have found on CPAN look something like this... my $uri = $r->uri; $uri =~ s|[^/]+$||; my $dir = $r->document_root . $uri; The problem with the above is that it does no