g_speran has asked for the wisdom of the Perl Monks concerning the following question:
C:\temp>perl -MNet::Ping -e "print $Net::Ping::VERSION"; 2.63 Fails with getaddrinfo(192.168.10.991,,AF_INET) failed - nodename nor servname pr +ovided, or not known at C:\temp\ip.pl line 5. However, If I replace Ping.pm with version C:\temp>perl -MNet::Ping -e "print $Net::Ping::VERSION"; 2.43 It Is successful. C:\temp>ip.pl Result: Ping: 192.168.10.991 => #### UNPINGABLE #### Should this be raised as a bug? #!/usr/bin/perl use Net::Ping; $IP="192.168.10.991"; $p = Net::Ping->new("icmp"); if ($p->ping($IP)) { $RESULT="Ping: $IP => alive"; } else{ $RESULT= "Ping: $IP => #### UNPINGABLE ####"; } $p->close(); print "Result: $RESULT\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Ping 2.63 Failing
by huck (Prior) on Jan 17, 2018 at 03:12 UTC | |
by g_speran (Scribe) on Jan 17, 2018 at 03:50 UTC | |
by syphilis (Archbishop) on Jan 17, 2018 at 04:21 UTC | |
by g_speran (Scribe) on Jan 17, 2018 at 04:41 UTC | |
by syphilis (Archbishop) on Jan 17, 2018 at 06:04 UTC | |
by huck (Prior) on Jan 17, 2018 at 04:25 UTC | |
by g_speran (Scribe) on Jan 17, 2018 at 04:39 UTC | |
by g_speran (Scribe) on Jan 17, 2018 at 04:56 UTC | |
by karlgoethebier (Abbot) on Jan 17, 2018 at 12:12 UTC | |
|
Re: Net::Ping 2.63 Failing
by thanos1983 (Parson) on Jan 17, 2018 at 13:10 UTC |