Front page | perl.perl5.porters |
Postings from February 2000
Re: fixing Sys::Hostname
Thread Previous
|
Thread Next
From:
Russ Allbery
Date:
February 7, 2000 14:43
Subject:
Re: fixing Sys::Hostname
Message ID:
ylk8kg3a8n.fsf@windlord.stanford.edu
Ilya Zakharevich <ilya@math.ohio-state.edu> writes:
> But what will it return? What *is* a host name?
How about returning the result of gethostname in libc or throwing an
exception if gethostname isn't implemented on that platform, just like
symlink and the other core functions that aren't available on some OSes?
And then if the VMS and Windows ports want to add their own native
implementations (assuming they don't have gethostname), they can.
And Sys::Hostname can catch the exception and fall back on other things if
necessary.
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Thread Previous
|
Thread Next