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.
In reply to Re: Perl an array of sockets
by NetWallah
in thread Perl an array of sockets
by suhijo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |