- or download this
use IO::Select;
my $s = new IO::Select;
...
}
}
}
- 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
- or download this
open(my $h1, "while true; do nc server.com 12345; sleep 10; done|");
# ditto for $h2