"Scott R. Godin" wrote:
> On Sun, 30 Mar 2003, R. Joseph Newton wrote:
>
> > "Scott R. Godin" wrote:
> >
> > > .... I think it probably would be better to quote the entire parameter
> > > > list for perl, but it did run fine once the call to the non-existent
> > > > bind() function was commented out.
> > >
> > > non-existent? since when?
> > >
> > > perldoc Net::Ping
> > >
> > > $p->bind($local_addr);
> > > Sets the source address from which pings will be sent. This must
>
> [snip]
>
> > > ping() for that object.
> >
> > So, whether the function exists or not, it should probably not be used
> > unless there is a very specific reaswon why it needs to be. If you scan
> > through the synopsis for the module, you may notice that it is not even
> > mentioned.
> >
>
> Without debating the possible usefulness of it when set improperly by
> inexperienced coders, In Net::Ping 2.28 which I have installed here, and
> which appears to be the most recent version available from CPAN, the bind()
> call certainly SEEMS to be mentioned in the Synopsis in the 6th line (of
> code) into it.
>
> Observe:
>
> SYNOPSIS
> use Net::Ping;
>
> $p = Net::Ping->new();
> print "$host is alive.\n" if $p->ping($host);
> $p->close();
>
> $p = Net::Ping->new("icmp");
> -> $p->bind($my_addr); # Specify source interface of pings
> foreach $host (@host_array)
> {
> print "$host is ";
> etc, etc, etc,
>
> /me wanders off whistling to the sound of one pin, dropping.
Well, I'll be darned. I guess I should have scanned more closely.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]