[boulder.pm] use strict, and net::ping
Robert L. Harris
Robert.L.Harris at rnd-consulting.com
Fri Jul 14 09:54:56 CDT 2000
I'm doing a "use strict;" and trying to use net::ping.
I have this:
$p=Net::Ping->new("icmp",5,64);
$Out=$p->ping($Target);
needless to say, strict is complaining about $p not being declared,
but if I do a "my ($p)" it gets rather unhappy.
What's the best way to make this call? I can't find a good example
in PCB or the Camel that uses strict.
I'd rather not remove the strict...
Help?
Robert
: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