Help for this page

Select Code to Download


  1. or download this
    use IO::Socket; #use the socket module
    use strict; #am bit careless so i need this
    ...
            {close $socket and die "connection closed\n";}
       }
    }
    
  2. or download this
    use IO::Socket;
    use strict;
    ...
      if($scrap_in=~/'bye'/i or $scrap_out=~/'bye'/i)
        {close $socket and die "connection ended\n";}
    }