[boulder.pm] use strict, and net::ping

Walter Pienciak walter at frii.com
Fri Jul 14 14:10:34 CDT 2000


On Fri, 14 Jul 2000, Rob Nagler wrote:

> > Basically, the ($p) puts it into a list context rather than
> > a plain old scalar context.
> 
> What I don't understand is why
> 
> my($p) =Net::Ping->new("icmp",5,64);
> 
> doesn't work?  I looked at the code for Net::Ping and it
> doesn't seem to call wantarray, so why would it care?
> 
> We use the my($p) syntax all over and always "use strict"
> and nairy a beep?

Good point.  If the Net::Ping code doesn't seem to be picky ...
Maybe Robert can make sure -w option is on and post more code
and exact error message?

Walter





More information about the Boulder-pm mailing list