Front page | perl.perl5.porters |
Postings from February 2000
Re: fixing Sys::Hostname
Thread Previous
|
Thread Next
From:
Ilya Zakharevich
Date:
February 7, 2000 13:06
Subject:
Re: fixing Sys::Hostname
Message ID:
200002072106.QAA06821@monk.mps.ohio-state.edu
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?
Ilya
Thread Previous
|
Thread Next