This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Q concerning cygwin/perl/network


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]