sub server { local $SIG{PIPE} = 'IGNORE'; while (my $client = $server->accept()) { for my $sec (1..60) { sleep 1; print $client "$sec\n" or last; } } }
In reply to Re^3: Is this a bug of perl threads?
by ikegami
in thread SOLVED: Is this a bug of perl threads?
by Ray.Zachary
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |