try Apache-request-get_server_name instead of hostname()
it's cheaper too, since Sys::Hostname::hostname forks, at least once
per-process. not so bad if you call it in the parent though (in a
PerlRequire script), then all children have the cached results
On Wed, 3 Nov 1999, Nick Urbanik wrote:
Dear folks,
When I run a CGI program as such, hostname works. When I run it under
Aapche::Registry, it fails. Can anyone understand why? Sorry, I am
new to all this.
[error] Cannot get host name of local machine at
/home/httpd/dbi/frame_control.cgi line 13
use Sys::Hostname;
my $hostname