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

  $saddr = sockaddr_in($self->{"port_num"}, $ip);

but I think there is an errata in the SYNOPSIS indeed, it should read

  $p->{port_num} = (getservbyname("http", "tcp"))[2];

-- fxn



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to