Help for this page

Select Code to Download


  1. or download this
    use IO::Select;
    my $s = new IO::Select;
    ...
        }
      }
    }
    
  2. or download this
    open(my $h1, "nc server.com 12345|");
    open(my $h2, "nc server.com 6789|");
    # now call the above I/O handler loop
    
  3. or download this
    open(my $h1, "while true; do nc server.com 12345; sleep 10; done|");
    # ditto for $h2