gioronco has asked for the wisdom of the Perl Monks concerning the following question:
My problem is that if I use "tcp" as $protocol some hosts result Unreachable (but with windows command "ping" same hosts are reachable);sub PingTest { my ($myhost, $protocol, $timeout) = @_; my $p = Net::Ping->new($protocol, $timeout); if (!$p->ping($myhost)) { print "Unreachable\n"; } else { print "Reachable\n"; } $p->close(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Ping on Windows
by moritz (Cardinal) on Oct 08, 2008 at 17:28 UTC | |
|
Re: Net::Ping on Windows (oldie)
by tye (Sage) on Oct 09, 2008 at 07:19 UTC |