Help for this page
#!/usr/bin/perl use IO::Socket; use Net::Ping; ... } }#end of 1st while loop close ($sock);
#!/usr/bin/perl use IO::Socket; use Net::Ping; ... die "Socket could not be created. Reason: $!\n" unless $sock; print $sock "ping:$destination \n"; close ($sock);