Help for this page

Select Code to Download


  1. or download this
    use IO::Socket;
     my $sock = new IO::Socket::INET (
                                      LocalHost => 'localhost',
    ...
                    print $_;
           }
        close($sock);
    
  2. or download this
     use IO::Socket;
     my $sock = new IO::Socket::INET (
                                      PeerAddr => 'localhost',
    ...
     my @val = qw(Hello there! this is socket);
     print $sock @val;
     close($sock);