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

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


On Fri, 14 Jul 2000, Robert L. Harris wrote:

> 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

Does

    my $p = Net::Ping->new("icmp",5,64);

get a complaint?

Walter




More information about the Boulder-pm mailing list