Hi

I'm running the latest distribution of cygwin and perl (5.6.1-1)
under Windows 2000. I have problems to make the simplest perl-
scripts to run as soon as they involve the network. The following
program should ping the localhost and is tested under Solaris. Under
cygwin, the ping fails. Any ideas? Comments? Shrieking epitaphs? :)

Regards,

Sargon

#!/usr/bin/perl

require Net::Ping;

$host = '127.0.0.1';
$p = Net::Ping->new();

if($p->ping($host))
{
    print "$host is alive.\n";
}
else
{
    print "$host is not alive.\n";
}

$p->close();


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to