B
bubslg
Help! I have a script that does a pingprobe on a list of servers. I
works fine with perl v5.6.1, but does not work with 5.8.8. It looks
like the return value from net:ing has changed. In 5.6.1 I always
get a return of either 1 or 0. In 5.8.8 I get a 1 or 0 with a bunch
of other data including the ip being pinged appended, meaning my
return value is alway going to be non-0. As a result a simple test
like
use Net:ing;
my $p = Net:ing->new("icmp");
print $p->ping("somehost");
$p->close();
is never going to work. Why the change in the return value, and how
do I fix it?
works fine with perl v5.6.1, but does not work with 5.8.8. It looks
like the return value from net:ing has changed. In 5.6.1 I always
get a return of either 1 or 0. In 5.8.8 I get a 1 or 0 with a bunch
of other data including the ip being pinged appended, meaning my
return value is alway going to be non-0. As a result a simple test
like
use Net:ing;
my $p = Net:ing->new("icmp");
print $p->ping("somehost");
$p->close();
is never going to work. Why the change in the return value, and how
do I fix it?