On Thursday 07 July 2005 09:52 am, Ray Licon wrote: > my $ServerName = Apache->server->server_hostname;
> The problem I'm having is with the differences between > mod_perl_2.x and the mod_perl_1.x release (which > apparently this code was based on). Does anyone know > how to get the server_hostname from mod_perl_2.x in a > way similar to the code here > "Apache->server->server_hostname;" ? I see that from a > request object I could get a server object and from > that possibly the server_hostname, but at the point in > the code - we have not yet asked for a request object. You don't need a request object, the following should work: use Apache2::ServerUtil; my $ServerName = Apache2::ServerUtil->server->server_hostname; > Also looking for the equivalent mod_perl_2.x packages > to Apache::File and Apache::URI. There's an Apache2::URI (http://perl.apache.org/docs/2.0/api/Apache2/URI.html) I'm not sure about Apache::File it's possible it's behaviour has been folded into other modules, what are you using it for? -- If you evade suffering you also evade the the chance of joy. Pleasure you may get, or pleasures, but you will not be fulfilled. You will not know what it is to come home. -- Ursula K. LeGuin, _The Dispossessed_