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

Re: fixing Sys::Hostname

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
February 7, 2000 13:17
Subject:
Re: fixing Sys::Hostname
Message ID:
19792.949958221@chthon
>On Mon, Feb 07, 2000 at 02:10:25PM -0700, Tom Christiansen wrote:
>> Your toy system with silly vagrant IPs is your own problem, and not
>> germane. 

>Saz who?

Says me.

>> There is a standard library function.

>For some value of "standard" only.

That's your own problem.

Man, you waste a lot of time with your stupid bickering about
nothingnesses, Ilya.

The solution is simple: change Sys::Hostname to provide
gethostname() the way one always wanted.  Feel free to
add sethostname(), too, if you want.  The problem is that
the current Sys::Hostname algorithm is *WRONG* because
POSIX::uname() does not return correct results because
the hostname isn't long enough.  We have the gethostname()
function known at Configure time.  Just fricking use it if
it's there!

--tom



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About