Полезная информация

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.135 SymbolChapter 8
Standard Modules
Next: 8.137 Sys::Syslog
 

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();


Previous: 8.135 SymbolPerl in a NutshellNext: 8.137 Sys::Syslog
8.135 SymbolBook Index8.137 Sys::Syslog