set_uk has asked for the wisdom of the Perl Monks concerning the following question:
sub Ping{ my ($self,$host) = @_; my $p = Net::Ping->new("external",1,80); $p->hires(); print "HOST->".$host."\n"; my ($ret, $dur, $ip) = $p->ping($host); print "RET->".$ret."\n"; print "DUR->".$dur."\n"; print "IP->".$ip."\n"; if (defined($ret)){ return $ret; } else { return undef; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Ping Response
by pg (Canon) on Oct 21, 2003 at 16:14 UTC | |
by set_uk (Pilgrim) on Oct 21, 2003 at 16:19 UTC | |
|
Re: Net::Ping Response
by Abigail-II (Bishop) on Oct 21, 2003 at 16:35 UTC | |
by pg (Canon) on Oct 21, 2003 at 17:28 UTC | |
by set_uk (Pilgrim) on Oct 21, 2003 at 21:06 UTC |