very empty has asked for the wisdom of the Perl Monks concerning the following question:
The error-message I get is: Use of uninitialized value in subroutine entry at /usr/lib/perl5/5.6.0/i586-linux/Socket.pm line 311. Bad arg length for Socket::unpack_sockaddr_in, length is 0, should be 16 at /usr/lib/perl5/5.6.0/i586-linux/Socket.pm line 311. The hosts are command-line-pingeable therefore I am absolutly clueless. Regards#!/usr/bin/perl -w use Net::Ping; foreach $IP ("192.168.0.4","192.168.0.21","192.168.0.34") { $p = Net::Ping->new(); next unless $p->ping($IP); $p->close; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Ping does not ping
by very empty (Scribe) on Dec 17, 2001 at 14:58 UTC |