Thread Sys::Hostname (5 answers)
Opened by bloonix at 2007-01-31 12:53

bloonix
 2007-02-03 15:23
#73871 #73871
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Danke für die Info Dubu. Es ist nicht so arg schlimm, wenn ein Hostname
auf manchen Systemen nicht geliefert werden kann. Das einzige, was mich
ein wenig stört ist ...

Quote
Attempts several methods of getting the system hostname and then caches the result. It tries the first available of the C library's gethostname(), `$Config{aphostname}`, uname(2), syscall(SYS_gethostname), `hostname`, `uname -n`, and the file /com/host. If all that fails it croaks.


Es wäre das gleiche, als wenn File::Find croaken würde, weil ein File nicht
gefunden wird. Gut, aber das ist eine andere Sache und einen
Workaround gibt es ja mit eval().

Merci!
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Sys::Hostname