home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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. croak s on failure.

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


Previous: 8.135 Symbol Perl in a Nutshell Next: 8.137 Sys::Syslog
8.135 Symbol Book Index 8.137 Sys::Syslog

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.