foreach $client ($select->can_read(1)) { if($serversocks{$client}) { # Activity on the listening socket means we have a new # client attempting to connect. # Get ahold of the new socket, assign it to all the whatnot, etc $client = $client->accept; $select->add($client); &setnonblocking($client); # <--- SEE HERE $connections{$client} = Connection->new($client, \%outbuffer, $Utils::thisserver); $unfinished{$client} = $connections{$client}; }