However, you're already using IO::Select->select() which I would think, being based on select(), would give you all you need. You could try setting the timeout to something other than 0, like 0.25 even undef if you only want it to return when there's something to act upon.
In reply to Re: While(1) using 100% CPU
by mr_mischief
in thread While(1) using 100% CPU
by crawfordr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |