in reply to Perl an array of sockets
You are using a GLOBAL $fh , then attaching another watcher to it that calls back "sub cliente()".sub incoming { my $w=shift; $fh=$w->fh->accept or die; <<<<<<<
Try deleting the global "my $fh", and making it local to sub incoming().
All power corrupts, but we need electricity.
|
|---|