Help for this page

Select Code to Download


  1. or download this
    use IO::Socket::INET;
    
    ...
        print "Port $port ", $sock ? "OPEN\n" : "CLOSED\n";
        $sock->close if $sock;
    }