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

Robert L. Harris Robert.L.Harris at rnd-consulting.com
Fri Jul 14 14:42:47 CDT 2000



I'm re-writing it thanks to an un-recoverable vi recover file.
When done, I'll try the (my) again as I may have done something
stupid, as it wouldn't be the first time.

Robert

Thus spake Walter Pienciak (walter at frii.com):

> 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
> 



:wq!
---------------------------------------------------------------------------
Robert L. Harris                |  Micros~1 :  
Senior System Engineer          |    For when quality, reliability 
  at RnD Consulting             |      and security just aren't
                                \_       that important!
DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.
FYI:
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'




More information about the Boulder-pm mailing list