in reply to How do I check the status of a remote network

Net::Ping is a pure Perl ping solution; that avoids all the potential anomalies of executing system commands. It can be as simple as

use Net::Ping; $p = Net::Ping->new(); print "$host is alive.\n" if $p->ping($host); $p->close();

It also gives you the opportunity to use tcp, udp, or icmp protocol, and many other settings.

Replies are listed 'Best First'.
Re^2: How do I check the status of a remote network
by at2marty (Novice) on Sep 15, 2011 at 20:50 UTC

    Thank you for your suggestion. I really like that idea and will update my code to use it.