in reply to Get URL path from SSI?

Isn't it DOCUMENT_URI? PATH_INFO might work, too.
my $uri = $ENV{DOCUMENT_URI}; # do something