develooper Front page | perl.beginners | Postings from March 2002

Re: Trouble with Net::Ping

Thread Previous | Thread Next
From:
Jan Gruber
Date:
March 1, 2002 07:14
Subject:
Re: Trouble with Net::Ping
Message ID:
200203011514.g21FEA525477@pollux.intern.primacom.net
Hi, Joseph && list !

On Friday 01 March 2002 02:44 pm, you wrote:
> I am appearing to have some
> troubles.  It appears that it can not reach the hosts specified, but when I
> try it manually it works just fine. 

# use TCP if we're not root, ICMP if we are
my $pong = Net::Ping->new( $> ? ("tcp", 1) : ("icmp", 1));

Maybe this helps.

Cheers,
Jan
-- 
cat /dev/world | perl -e "while (<>) {(/(^.*? \?) 42 \!/) && (print $1)}"
errors->(c)
_ 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About