Re: Help understand documentation

2006-06-13 Thread Xavier Noria
On Jun 13, 2006, at 6:14, Vijay Kumar Adhikari wrote: I understand. My question is that Net::Ping does not use that info at all. If a host is alive, it will be listed in the output no matter what port you specify. Is this a bug? The module uses the port in several subroutines, like this $sa

Re: Help understand documentation

2006-06-12 Thread Vijay Kumar Adhikari
I understand. My question is that Net::Ping does not use that info at all. If a host is alive, it will be listed in the output no matter what port you specify. Is this a bug? On 6/11/06, Xavier Noria <[EMAIL PROTECTED]> wrote: On Jun 11, 2006, at 14:20, Vijay Kumar Adhikari wrote: > This is fro

Re: Help understand documentation

2006-06-11 Thread Xavier Noria
On Jun 11, 2006, at 14:20, Vijay Kumar Adhikari wrote: This is from http://perldoc.perl.org/Net/Ping.html # Like tcp protocol, but with many hosts $p = Net::Ping->new("syn"); $p->{port_num} = getservbyname("http", "tcp"); foreach $host (@host_array) { $p->ping($host); } w

Help understand documentation

2006-06-11 Thread Vijay Kumar Adhikari
This is from http://perldoc.perl.org/Net/Ping.html # Like tcp protocol, but with many hosts $p = Net::Ping->new("syn"); $p->{port_num} = getservbyname("http", "tcp"); foreach $host (@host_array) { $p->ping($host); } while (($host,$rtt,$ip) = $p->ack) { print "HOST: $ho