See IO::Select, select, threads, POE::Wheel::Follow or Coro. Likely, AnyEvent also provides an abstraction of a select loop.
It really depends how much frameworkness you need. IO::Select nicely? abstracts away most of the uglyness of select, which is why I listed it before the select call itself. All other modules are frameworks that more or less tie you into their respective idiom of doing IO and other event handling. AnyEvent tries to abstract away the main event loop.
In reply to Re: working with 2 inputs
by Corion
in thread working with 2 inputs
by sktron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |