in reply to Re^4: How to Multiplex a Client using IO::Select
in thread How to Multiplex a Client using IO::Select

The following code runs the thread asynchronously and detached:

async { ... }->detach();

This starts a separate thread that will read from STDIN and stuff the input into the queue.