From 5e6fb4d7df6eb968d0111e41184187c62911e175 Mon Sep 17 00:00:00 2001 From: brian d foy Date: Wed, 1 Jun 2011 21:21:46 -0500 Subject: [PATCH] perlfaq9: Sys::Hostname is in core since 5.0 --- pod/perlfaq9.pod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pod/perlfaq9.pod b/pod/perlfaq9.pod index c6fd929..d211e96 100644 --- a/pod/perlfaq9.pod +++ b/pod/perlfaq9.pod @@ -621,16 +621,16 @@ gethostbyname, Socket, Net::Domain, Sys::Hostname> (contributed by brian d foy) -The C module, which is part of the standard distribution starting -in perl5.7.3, can get you the fully qualified domain name (FQDN), the host +The C module, which is part of the Standard Library starting +in Perl 5.7.3, can get you the fully qualified domain name (FQDN), the host name, or the domain name. use Net::Domain qw(hostname hostfqdn hostdomain); my $host = hostfqdn(); -The C module, included in the standard distribution since -perl5.6, can also get the hostname. +The C module, part of the Standard Library, can also get the +hostname: use Sys::Hostname; -- 2.7.4