while(<$connection>) { # waits for data
I think you want select, or the easier to use IO::Select.
In reply to Re: non-blocking listen on a tcp server
by almut
in thread non-blocking listen on a tcp server
by monkeyfish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |