in reply to Poll with socket handlers

use IO::Select; $select = IO::Select->new(); $select->add($sock1); $select->add($sock2); $select->add($sock3); for my $sock ($select->can_read(0.1)){ my $buf = $sock->read(); # do stuff here }

Is this what you need?