Приглашаем посетить
Горький (gorkiy-lit.ru)

[Chapter 8] 8.136 Sys::Hostname

PreviousChapter 8
Standard Modules
Next
 

8.136 Sys::Hostname

Provides one function, hostname, which attempts to get the system hostname by doing checks appropriate to the operating system. Removes nulls, returns, and newlines from the result, which it then caches. croaks on failure.

use Sys::Hostname;
$host = hostname();


PreviousHomeNext
8.135 SymbolBook Index8.137 Sys::Syslog