develooper Front page | perl.perl5.porters | Postings from February 2000

Re: fixing Sys::Hostname

Thread Previous | Thread Next
Ilya Zakharevich
February 7, 2000 13:06
Re: fixing Sys::Hostname
Message ID:
Tom Christiansen writes:
> >Exactly - I have never understood why gethostname() was not built
> >in in the first place.
> That would be the cleanest, fastest, and easiest thing to do.
> One might be able to do so backwards compatibly, too.

But what will it return?  What *is* a host name?

Suppose I'm behind a temporary-IP-assigned SLIP dialup.  I have
$ENV{HOSTNAME} set to some internal-use-only value which means nothing
to the outside world.  What would gethostname() do?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About