in reply to Gathering server information
use Net::Ping; my $host = 'perlmonks.com'; my $p = Net::Ping->new(); print "$host is alive.\n" if $p->ping($host); $p->close(); [download]