CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
Net::Ping error: bad file descriptor

 



Xcross87
New User

May 5, 2009, 3:11 AM

Post #1 of 1 (2903 views)
Net::Ping error: bad file descriptor Can't Post

I've got troubles when using this script in Windows:


Code
#!C:/Perl/bin/perl.exe -w 
use Net::Ping;

my $host = shift @ARGV || "72.14.235.104";
my $p = Net::Ping->new("tcp");

if ( $p->ping( $host ) ) {
print "$host is reachable! \n"
}
else {
print $!;
}
$p->close();


And I got the error:

Code
 Bad file descriptor


I can't figure out why it is.
I run this script under Linux, it's fine.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives